HTML CSS examples for CSS Layout:Fixed Position
CSS - Two Divs fixed and fill with absolute position
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .box {<!--from www.j ava2s . c o m--> display:table; position:relative; width:91%; height:201px; padding:6px; background:lightcoral; } .left { overflow:hidden; vertical-align:bottom; display:table-cell; height:21px; margin-left:0; margin-right:0; background:pink; } .leftContent { background:lightyellow; } .right { width:100px; display:table-cell; background:lightblue; } </style> </head> <body> <div class="box"> <div class="left"> <div class="leftContent"> Lor </div> </div> <div class="right"> Lor </div> </div> </body> </html>