CSS Multiple Columns - W3Schools
Có thể bạn quan tâm
CSS Multi-column Layout
The CSS Multi-column Layout Module allows easy definition of multiple columns of text - just like in newspapers:
Multi Column
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi. Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod mazim placerat facer possim assum.CSS Multi-column Properties
In this chapter you will learn about the following multi-column properties:
- column-count
- column-gap
- column-rule-style
- column-rule-width
- column-rule-color
- column-rule
- column-span
- column-width
CSS Create Multiple Columns
The CSS column-count property specifies the number of columns an element should be divided into.
Example
Divide the text in the <div> element into 3 columns:
div { column-count: 3; } Try it Yourself »CSS Column Gap
The CSS column-gap property specifies the space between the columns.
Example
Specify a 40 pixels gap between the columns:
div { column-gap: 40px; } Try it Yourself »Column Subpages
Continue learning about CSS multiple columns:
- Column Rules - column-rule, column-span, column-width
CSS Multi-columns Properties
The following table lists all the multi-columns properties:
| Property | Description |
|---|---|
| column-count | Specifies the number of columns an element should be divided into |
| column-fill | Specifies how to fill columns |
| column-gap | Specifies the gap between the columns |
| column-rule | A shorthand property for setting all the column-rule-* properties |
| column-rule-color | Specifies the color of the rule between columns |
| column-rule-style | Specifies the style of the rule between columns |
| column-rule-width | Specifies the width of the rule between columns |
| column-span | Specifies how many columns an element should span across |
| column-width | Specifies a suggested, optimal width for the columns |
| columns | A shorthand property for setting column-width and column-count |
Từ khóa » Html Css Two Column List
-
How To Create A Two Column Layout - W3Schools
-
How To Display An Unordered List In Two Columns? - Stack Overflow
-
How To Display Unordered List In Two Columns - W3docs
-
Display An Unordered List In Two Columns - HTML CSS CSS Layout
-
An Adventure In CSS With Column Lists | You've Been Haacked
-
Two Column Lists Using HTML - Matt Danner
-
Columns - CSS-Tricks
-
Split List Into Columns Using CSS - Create Two, Three Or Multi-column List
-
Columns - CSS: Cascading Style Sheets - MDN Web Docs - Mozilla
-
CSS Multi-column Layout - CSS: Cascading Style Sheets | MDN
-
How To Display A List In N Columns Format ? - GeeksforGeeks
-
Multiple Column Lists Using One
- - CSS Wizardry
-
List In 2 Columns - CodePen
-
How To Make Two Column List Items Using Basic CSS