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> filter filter menu </a> </div> </div> </td> </tr> </table> </div>
what need use css attribute position: fixed;
look example: jsfiddle.
Comments
Post a Comment