/ Published in: XHTML
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> * {margin:0px; padding:0px;} body{background:#def5f9; font-family:verdana, helvetica, sans-serif; font-size:0.8em} #container{position:relative; width:900px; background:#f9f9f9; border:1px solid #900; margin:auto auto; padding: 10px 5px; overflow:hidden; text-align:center; z-index:1;} #header{width:890px; background:#333; margin:auto auto; padding:16px; margin:-16px; margin-bottom:10px;} #header h1{color:#fff; text-align:left;} #leftcol{width:240px; float:left; background:#f6d4d4; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px; } #midcol{width:360px; float:left; background:#a3f9d8; padding: 10px 5px; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px; text-align:left;} #midcol p{margin-bottom:10px;} #rightcol{ width:240px; float:left; background:#fa0; padding: 10px 5px; overflow:hidden; margin:0px 5px; padding-bottom:4000px; margin-bottom:-4000px;} #footer{position:relative; width:890px; background:#333; margin:auto auto; padding:16px; margin:-16px; margin-bottom:10px; height:100px; clear:both; z-index:20; margin-bottom:-20px; margin-top:30px; color:#fff;} </style> </head> <body> <div id="container"> <!-- START LEFT COLUMN --> <div id="leftcol"> </div> <!-- START CENTER COLUMN --> <div id="midcol"> </div> <!-- START RIGHT COLUMN --> <div id="rightcol"> </div> <hr style="display:block; height:0.1em; clear:both; visibility:hidden;" /> </div> </body> </html>