DIV + CSS webpage layout: three-column layout, divcss

Source: Internet
Author: User

DIV + CSS webpage layout: three-column layout, divcss
1. Adaptive width layout of three columns

The principle of the three-column layout is the same as that of the two-column layout, but with one more column, you only need to add one column to the layout of the two columns with adaptive width, then, the width of the three columns is recalculated to achieve the Adaptive Layout of the three columns.

In the same way, the layout of more columns is actually the same as that of two or three columns.

1 <! DOCTYPE html> 2 2. fixed width of left and right columns and adaptive width of intermediate content

To realize the Adaptive Layout of the left and right columns with fixed width and middle width, the floating mode cannot be used. After the floating mode is used, the page becomes messy. You must use absolute positioning to fix the three columns in one row.

1 <! DOCTYPE html> 2 

 

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.