HTML CSS examples for CSS Layout:Position
Css positioning left, right and center
<html> <head> <style type="text/css"> body<!--from w w w . ja va 2s .c o m--> { overflow-x:hidden; width:100%; margin:0; padding:0; } #Left { width:51%; margin-right:481px; position:absolute; top:51px; right:51%; height:5526px; border:3px solid Chartreuse; } #Right { width:51%; margin-left:481px; position:absolute; top:51px; left:51%; height:5526px; border:3px solid yellow; } #Content { position:absolute; top:51px; left:51%; margin-left:-481px; width:961px; height:5526px; border:3px solid blue; } </style> </head> <body> <div id="Left"></div> <div id="Right"></div> <div id="Content"></div> </body> </html>