HTML CSS examples for CSS Layout:Layout
Page layout with HTML and CSS
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #wrapper {<!-- w ww.java 2 s . co m--> width:501px height:501px; } #left_column { width:100px; height:501px; background:Chartreuse; position:absolute; left:0px; top:0px; } #top_bar { position:absolute; left:100px; top:0px; width:401px; height:100px; background-color:yellow; } #middle { position:absolute; left:100px; top:100px; width:301px; height:401px; background:blue; } #right_column { position:absolute; left:401px; top:100px; width:100px; height:401px; background:pink; } </style> </head> <body> <div id="wrapper"> <div id="left_column"></div> <div id="top_bar"></div> <div id="middle"></div> <div id="right_column"></div> </div> </body> </html>