Css3-columns Multi-Column layout

Source: Internet
Author: User

1 /*layout in the CSS3*/2 . Wrapper{3 margin:Auto;4 width:300px;5 Height:200px;6 Border:2px dotted Blue;7 -webkit-columns:15px 3;/*represents a multi-column layout with 3 columns in each column and more than 3 columns for the parameter to fail! For example, a multi-column layout can be displayed for an article*/8      9 -webkit-column-count:3;Ten -webkit-column-width:15px;/*the width and count properties are taken apart to be used separately, weakly disassembled and used concurrently, and the browser may invalidate a property depending on the situation*/  One -webkit-column-gap:2em;/*set column spacing to 2 characters, not set to 1 character spacing by default*/     A  - -webkit-column-rule:2px solid Red;/*defines the split line between columns and columns as 2px solid red The split line does not occupy space position like a ghost*/ -      the} - H2{ - text-align:Center;/*Center Text Display*/ - -webkit-column-span: All;/*make H2 across all columns*/ +}

Css3-columns Multi-Column layout

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.