Div + CSS three rows and three columns

Source: Internet
Author: User

1

 

<Style>
*{
Margin: 0;
Padding: 0;
Font-size: 1em;
}
# Header {
Width: 800px;
Height: 100px;
Margin: 0 auto;
Background: # 06f;
}
# Divall {
Width: 800px;
Margin: 0 auto;
Background: # FFF;
}
# Footer {
Width: 800px;
Height: 60px;
Margin: 0 auto;
Background: #999;
}

# Sider_a {
Width: 150px;
Float: left;
Background: # f93;
}
# Main {
Width: pixel PX;
Float: left;
Margin-left: 6px;
Background: # dceafc;
}
# Sider_ B {
Width: pixel PX;
Float: right;
Background: # CCC;
}
</Style>

<Div id = "Header"> header </div>
<Div id = "divall">
<Div id = "sider_a"> sider_a </div>
<Div id = "Main"> main </div>
<Div id = "sider_ B"> sider_ B </div>
</Div>
<Div id = "footer"> footer </div>

 

2

 

<Style>

# Header
{
Margin: 0px;
Border: 0px;
Background: # ccd2de;
Width: 580px;
Height: 60px;
}

# Mainbox
{
Margin: 0px;
Width: 580px;
Background: # FFF;
}

/* Define the style of the left column on the page */
# Menu
{
Float: right;
Margin: 2px 0px 2px 0px;
Padding: 0px;
Width: 200px;
Background: # ccd2de;
}

/* Define the column style on the page */
# Sidebar
{
Float: left;
Margin: 2px 0px 2px 0px;
Padding: 0px;
Background: # f2f3f7;
Width: 180px;
}

/* Define the style of the right column on the page */
# Content
{
Float: right;
Margin: 2px 0px 2px 0px;
Padding: 0px;
Width: 200px;
Background: # e0efde;
}

# Footer
{
Clear: both;
Margin: 0px 0px 0px 0px;
Padding: 5px 0px 5px 0px;
Background: # ccd2de;
Height: 40px;
Width: 580px;
}



top


left

medium

right

foot

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.