HTML CSS examples for CSS Layout:Float
Float div to left and right with 100% height and fixed width
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> html, body { height:100%; } #left { float:left; width:301px; background:red; height:100%; } #right { float:right; background:green; height:100%; } </style> <!--from w w w. java2 s . co m--> </head> <body> <div id="left"> few contents here </div> <div id="right"> more contents here </div> </body> </html>