Example of a div+css layout with a three-column automatic extension with a scroll bar

Source: Internet
Author: User

Automatic scaling effect.

Here's the code:
<title>nice and free CSS Template 3</title>
<style type= "text/css" media= "screen" ><!--
/* Body und schrift Deffinitionen * *
HTML {
padding:0px;
margin:0px;
}
Body {
Background-color: #e1ddd9;
font-size:12px;
Font-family:verdana, Arial, Sunsans-regular, Sans-serif;
Color: #564b47;
padding:0px;
margin:0px;
}
A
Color: #ff66cc;
font-size:11px;
Background-color:transparent;
Text-decoration:none;
}
Pre {
Color: #564b47;
font-size:11px;
Background-color: #e1ddd9;
Font-family:courier, Monaco, monospace;
}
P,H1, H3, pre {
padding:5px 15px;
margin:0px;
}
h3 {
font-size:13px;
Text-transform:uppercase;
Color: #564b47;
Background-color:transparent;
}
/* Positioning-layers Dynamisch * *
#logo {
Position:absolute;
right:2%;
width:96%;
Text-align:right;
top:20px;
}
#left {
Position:absolute;
left:2%;
width:22%;
top:106px;
Background-color: #ffffff;
}
#content {
Position:absolute;
left:25%;
width:50%;
top:106px;
Background-color: #ffffff;
Overflow:auto;
}
#right {
Position:absolute;
left:76%;
width:22%;
top:106px;
Background-color: #ffffff;
Overflow:auto;
}
#right, #content, #left {
border:1px solid #564b47;
padding:0px;
margin:0px;
}
--></style>
<body>
<div id= "Left" >
<pre>
#left {
Position:absolute;
left:2%;
width:22%;
top:106px;
Background-color: #ffffff;
}
</pre>
<p>these pages use certain CSS definitions this are unsupported by older BROWSERS.&LT;BR
<a href= "/" >more nice and free CSS templates</a></p>
<p>
<br/>
<br
</p>
<br/>
<br/>
</div>
<div id= "Content" >
<pre>
#content {
Position:absolute;
left:25%;
width:50%;
top:106px;
Background-color: #ffffff;
Overflow:auto;
}
</pre>
<p>with Overflow:auto;
With overflow:you can determine how overflowing content should to be treated.</p>
<pre>
Visible = the element gets expanded to show the entire content.
Hidden = The content would be cut if it overflows.
Scroll = The browser should offer scroll bars.
Auto = The browser should decide to render the element. Scroll bars are allowed.
</pre>
<p>older browsers don't know support this property.<br/>
IE does not support overflow:visible</p>
<br/>
<br/>
</div>
<div id= "Right" >
<pre>
#right {
Position:absolute;
left:76%;
width:22%;
top:106px;
Background-color: #ffffff;
Overflow:auto;
}
</pre>
<p>use of this Code encouraged! (O_.) /</p>
<br/>
<br/>
</div>
</body>

below is the HTML scripting Effects code, click the Run button to see the effect:
[Ctrl + a All SELECT Tip: You can modify some of the code first, and then press run the

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.