Display:table-cell

Source: Internet
Author: User

Layout Artifact Display:table-cell

First case:

In the previous layout I will use float to achieve, but it triggers more problems. For example, to clear the float, the element floats out of the document flow, but sometimes can not use the float layout. In other words, it combines the characteristics of both the inline and the block, and simply says that the element that sets the Inline-block property has the properties of the block element that can set the width and height, It also preserves the inline element's non-wrapping characteristics.

Ab

Demo

A second case:

The case I used to like most before was the bootstrap grid system. A raster system is used to create a page layout with a series of rows and columns (column), and your content can be placed in these created layouts. But at the same time the grid system also has shortcomings, once more than 12 elements will fall down.

    • 1
    • 2
    • 3
    • 4

Demo


Display:table-cell

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.