How to achieve a high-level layout

Source: Internet
Author: User
padding Compensation Method
First, set the Padding-bottom of the column to a value that is large enough, and then set the Margin-bottom of the column to a negative number that is offset by the positive value of the previous Padding-bottom, and the parent container setting is out of the hidden The height of the parent container is still the height of the column in the Padding-bottom when it is not set, and when any column in it has a height increase, the height of the parent container is propped up to the height of the highest column in it. Other columns that are shorter than this list use their padding-bottom to compensate for this part of the height difference.

<! DOCTYPE html>

Implementing two-column layouts

<!        DOCTYPE html>

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.