javascript - Fix div from the bottom -
i want create section (like right section on facebook). section fixed bottom; far scroll, section scrolls. when reach bottom of section, becomes fixed , stays on screen.
i think it's not possible pure css, maybe js..
do have solution making happen ?
in advance, thanks.
using bootstrap make easier. can achieve navbar-fixed-bottom
<!doctype html> <html lang="en"> <head> <title>bootstrap case</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body style="height:1500px"> <nav class="navbar-inverse navbar-fixed-bottom"> <div class="container-fluid"> <h3>hello<h3> </div> </nav> <div class="container"> <h3>fixed navbar</h3> <div class="row"> <div class="col-md-4"> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> </div> <div class="col-md-4"> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> </div> <div class="col-md-4"> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> </div> </div> </div> <h1>scroll page see effect</h1> <div class="col-md-4"> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <div class="col-md-4"> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <div class="col-md-4"> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> <p>a fixed navigation bar stays visible in fixed position (top or bottom) independent of page scroll.</p> </body> </html>
Comments
Post a Comment