Page left-right layout

Source: Internet
Author: User

Title.

The left and right layout of the Web page. To achieve an effect similar to that in a screenshot:

I use three div block level elements to implement this layout.

The outer layer uses a large div to wrap it, width are limited. Just name them Div-left, Div-middle,div-right.

Among them, Div-left's width:47%;d the width:47% of Iv-middle width:6%;div-right;

Then, three block-level elements are all float:left, so you can achieve the basic layout of the page. Then use the block-level element in the div-right to use the float:right. Text text-align:right; Then, using block-level element float:left;text-align:left in Div-right;

The effect of this is that the div on both sides is closer to the middle.

After the structure is implemented, remember to clear the float inside the large div.

End.

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.