Two-column DIV+CSS standard Layout code

Source: Internet
Author: User

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" &GT;WWW.ALISTAPART.COM&LT;/A&GT;.
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]

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.