javascript - Make a div sticky with Bootstrap -


i using bootstrap v3 div make 'sticky' once scrolled current position, either moved left or left in position.

<div id="trigger1">     <table class="nav-justified">         <tr>             <td>                 menu area             </td>             <td>                 <div class="text-right">                     <div class="dropdown">                         <a id="filterdatalabel" class="btn btn-danger" data-target="#" data-toggle="dropdown" href="#" role="button">                             <span aria-hidden="true" class="glyphicon glyphicon-filter">                             </span>&nbsp;&nbsp;filter filter menu                         </a>                     </div>                 </div>             </td>         </tr>     </table> </div> 

what need use css attribute position: fixed;

look example: jsfiddle.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -