"faction_page"
Bootstrap 3.3.0 Snippet by snippetpi

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <head> <style> div.relative { position: relative; width: 900px; height: 200px; border: 3px solid #73AD21; } div.absolute { position: absolute; top: 70px; left: -30; width: 170px; height: 170px; border: 3px solid #73AD21; } div.absolute2 { position: absolute; bottom: 5px; right: 0; width: 170px; height: 40px; border: 3px solid #73AD21; } </style> <style> div.sticky { position: -webkit-sticky; position: sticky; top: 0; padding: 5px; background-color: #cae8ca; border: 2px solid #4CAF50; } </style> </head> <body> <h2>position: absolute;</h2> <p>An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed):</p> <div class="relative">This div element has position: relative; <div class="absolute"><img src="https://m.media-amazon.com/images/M/MV5BMjI0NjI4NjY1Ml5BMl5BanBnXkFtZTcwODI1NDMzNQ@@._V1_UY1200_CR122,0,630,1200_AL_.jpg" width="150px" height="150px" /></div> <div class="absolute2">Rank#30</div> </div> <p>Try to <b>scroll</b> inside this frame to understand how sticky positioning works.</p> <p>Note: IE/Edge 15 and earlier versions do not support sticky position.</p> <div class="sticky">I am sticky!</div> <div style="padding-bottom:2000px"> <p>In this example, the sticky element sticks to the top of the page (top: 0), when you reach its scroll position.</p> <p>Scroll back up to remove the stickyness.</p> <p>Some text to enable scrolling.. Lorem ipsum dolor sit amet, illum definitiones no quo, maluisset concludaturque et eum, altera fabulas ut quo. Atqui causae gloriatur ius te, id agam omnis evertitur eum. Affert laboramus repudiandae nec et. Inciderint efficiantur his ad. Eum no molestiae voluptatibus.</p> <p>Some text to enable scrolling.. Lorem ipsum dolor sit amet, illum definitiones no quo, maluisset concludaturque et eum, altera fabulas ut quo. Atqui causae gloriatur ius te, id agam omnis evertitur eum. Affert laboramus repudiandae nec et. Inciderint efficiantur his ad. Eum no molestiae voluptatibus.</p> </div> </body> </html>

Related: See More


Questions / Comments: