A two-column DIV+CSS standard Layout code, detailed as follows:
The code is as follows: <title>nice and free CSS Template 1</title> <style type= "text/css" media= "screen" ><!-- /* Body und schrift Deffinitionen * * HTML, body{ padding:0px; margin:0px; } Body { Background-color: #e1ddd9; font-size:12px; Font-family:verdana, Arial, Sunsans-regular, Sans-serif; Color: #564b47; } A Color: #ff66cc; font-size:11px; Background-color:transparent; Text-decoration:none; } Pre { Color: #564b47; font-size:11px; Background-color:transparent; Font-family:courier, Monaco, monospace; } H1 { font-size:14px; padding-top:50px; Text-transform:uppercase; Color: #564b47; Background-color:transparent; } P,h1,pre { margin:0px 30px 10px 30px; } /* Positioning-layers Dynamisch * * #content { Float:left; width:70%; left:0px; Background: #fff; border-right:2px solid #564b47; border-bottom:2px solid #564b47; margin-right:15px; } #menu { } #menu p { font-size:11px; margin-left:0px;/* fuer den geliebten ie * * } --></style> <body> <div id= "Content" > <p>all templates are XHTML 1.0 and css2/tableless.</p> <p><b>2 columns/menu and Content dynamic</b><br/> 2 Column Layout grid. Both columns are dynamic and adjust themselves procentually to the browser <br/> <p><a href= "/" >more nice and free CSS templates</a></p> <br/> <pre> Body { Background-color: #8b4513; font-size:11px; Font-family:verdana, Arial, Helvetica, Sunsans-regular, Sans-serif; padding:0px; margin:0px; } #content { Float:left; width:70%; Background: #fff; border-right:2px solid #996666; border-bottom:2px solid #996666; margin-right:15px; padding-bottom:20px; }</pre> <br/> <br/> </div> <div id= "Menu" > <p>the Most known site with this layout is<br/> <a href= "../../../www.alistapart.com/stories/journey/default.htm" >WWW.ALISTAPART.COM</A>. Oh, that site has the changed its layout. Nevertheless is the site a very important resource and should to be mentioned. </p> <p>more info and templates can be found <br/> <a href= "/" >here</a><br/> <br/> <br/> <br </p> </div> </body> |
The following is an HTML script effect code, click the Run button to view the effect:
[Ctrl + a ALL SELECT hint: You can modify some of the code, and then press to run]