HTML CSS examples for CSS Layout:Absolute Position
use overflow-y:auto with child with bottom: 0 and position:absolute
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .outer {<!--from ww w. ja va 2 s . co m--> background-color:Chartreuse; width:151px; height:201px; position:fixed; top:0; left:0; overflow-y:auto; overflow-x:hidden; } .inner { position:relative; min-height:100%; padding-bottom:49px; box-sizing:border-box; } .item { padding:16px; color:yellow; background-color:blue; } .item:hover { background-color:pink; } #footer { position:absolute; bottom:0px; width:121px; background-color:OrangeRed; padding:16px; color:grey; } #footer:hover { background-color:BlueViolet; } .outer:last-child { left:201px; height:401px; } </style> </head> <body> <div class="outer"> <div class="inner"> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div id="footer"> Lorem ip </div> </div> </div> <div class="outer"> <div class="inner"> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div class="item"> Lorem i </div> <div id="footer"> Lorem ip </div> </div> </div> </body> </html>