<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>ll</title> <style> body {margin:0;background-image:url(../../images/ct/bg.jpg);background-repeat:repeat-x;} #page1 {margin:auto;width:780px;padding:0;} #header {background:#88A4E3 url(../../images/hd/hd.gif);height:100px;width:780px;} #nav {background:#EAB701 url(../../images/nav/nav.gif);height:23px;width:780px;} #content {width:780px;height:500px;} #footer {background:#E93001;width:780px;} #lef {width:150px;float:left;} #mid {width:300px;float:right;} #rig {background:red;border:5px solid black;} </style> </head> <body> <div id="page1"> <div id="header">xx</div> <div id="nav">yy</div> <div id="content"> <div id="lef"><div>a</div><div>b</div></div> <div id="mid"><div>c</div><div>d</div></div> <div id="rig"><div>e</div><div>f</div></div> </div> <div id="footer">zz</div> </div> </body> </html>
<style> body {margin:0;background-image:url(../../images/ct/bg.jpg);background-repeat:repeat-x;} #page1 {margin:auto;width:780px;padding:0;} #header {background:#88A4E3 url(../../images/hd/hd.gif);height:100px;width:780px;} #nav {background:#EAB701 url(../../images/nav/nav.gif);height:23px;width:780px;} #content {width:780px;height:500px; float:left} #footer {background:#E93001;width:780px; clear:both;} #lef {width:150px;float:left;} #mid {width:300px;float:right;} #rig {background:red;border:5px solid black; margin:0px 300px 0px 150px;} </style>