Create two-column page layouts with Web standards

Source: Internet
Author: User
Web|web Standard | create | pages are designed using WEB standards, and there is a belief that you don't use the Table Glen for basic page layout.

The two-column layout common to a Web page is usually done by a table of 1 rows and 2 columns. For example:
<table border= "0" width= "760" >
<tr>
&LT;TD style= "width:30%;" > left column </td>
&LT;TD style= "width:70%;" > right Column </td>
</tr>
</table>
Using the Float property of a Div object, it can be implemented completely, with the page code as follows:
<div id= "Container" >
<div id= "Sidecolumn" > left column </div>
<div id= "Maincolumn" > right column </div>
</div>
The accompanying CSS code is:
#Container {
width:760px;
}
#SideColumn {
width:200px;
Float:left;
border:1px solid #00F;
}
#MainColumn {
width:550px;
Float:right;
border:1px solid #000;
}


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.