CSS Series tutorial--margin padding column (end)

Source: Internet
Author: User

Margin/margin-left/margin-right/margin-top/margin-bottom Setting margin Properties
margin:0;--All margins 0
margin:0 1px;--margin-top/bottom is 0, Margin-left/right is 1px
margin:1px 2px 3px 4px;--margin-top/right/bottom/left

padding, similar to margin, uses the declaration of padding. Usage Ibid.

Column-count:number: Used to define the number of columns to display.
Demo
Div
{
-moz-column-count:3; /* Firefox */
-webkit-column-count:3; /* Safari and Chrome */
Column-count:3;
}

column-gap:30px; Specify the interval between each column.
column-rule:1px solid red; the notation is similar to border; Specifies the width, style, and color rules between columns
Column-span: Indicates the number of columns spanned by the column, similar to the colspan of table.
Column-width: Defines the width of each column.

Columns:column-width and Column-count merge the notation. columns:100px 3;

CSS Series tutorial--margin padding column (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.