Four-column standard DIV+CSS layout example

Source: Internet
Author: User

Four-column standard DIV+CSS layout example

Here's the code:



nice and free CSS Template 4




left



#left {
Position:absolute;
left:2%;
width:19%;
top:106px;
Background-color: #ffffff;
}

Warning


these pages use certain CSS definitions this are unsupported by older BROWSERS.<BR
more nice and free CSS templates












middleleft



#middleleft {
Position:absolute;
left:22%;
width:28%;
top:106px;
Background-color: #ffffff;
}

calculations in your head


this example requires some calculations. The sum of the widths yields 98%. The distance from
The border of the "the" the "the" "the" the "the" the "the" distance yields the left position of
The next box.

if you want boxes of different width you need to adjust these values accordingly.


use of this code is encouraged!


try it with 2 or 3 columns








middleright



#middleright {
Position:absolute;
left:51%;
width:28%;
top:106px;
Background-color: #ffffff;
}

box border


borders, pading and margin are defined in



#right, #middleright, #middleleft, #left {
border:1px solid #564b47;
padding:0px;
margin:0px;
}

font definitions


padding are passed to P, H1 and H3.



P,H1, H3, pre {
padding:5px 15px;
margin:0px;
}







right



#right {
Position:absolute;
left:80%;
width:18%;
top:106px;
Background-color: #ffffff;
}

open code


use of this code is encouraged! (O_.) /








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.