Examples of div+css typesetting
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.D TD ";> <ptml xmlns=" http://www.w3.org/1999/xhtml "; lang= "gb2312" > <pead> <meta http-equiv= "Content-type" content= "text/html; charset=gb2312 "/> <meta http-equiv=" content-language "content=" gb2312 "/> <meta content=" All "name=" Rob OTs "/> <meta name=" Author "content=" huobazi@aspxboy.com, Live target "/> <meta name=" Copyright "content=" Www.A spxboy.com, free copyright, arbitrarily reproduced. " /> <meta name= "Description" content= "www. Aspxboy.com "/> <meta name=" Keywords "content=" www. Aspxboy.com, live target, Huobazi "/> <title> div layout </title> <style> body{text-align:center;margin:0; Padding:0}/*text-align:center is a must have in IE */div {height:200px; color:red; }. title {margin:0 Auto; width:776px; Background-color: #abcdef; }. Middle { margin:0 Auto; width:776px; }. Left {float:left; Clear:right; width:20%; Background-color: #eeefff; }. Center {float:left; Clear:right; width:50%; Background-color: #CCC000; }. Right {float:left; Clear:right; width:30%; Background-color: #fff000; }. both {clear:both; width:100%; Background-color: #666999; }. footer {margin:0 auto; width:776px; Clear:both; Background-color: #000fff; } </style> </pead> <body> top left middle right full Line left middle right full row left middle side Right Bottom </body> </ptml>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]