CSS Columns Tutorial
Generally, when we said layout, it means element’s layout, but we may need change the layout of paragraphs, CSS Columns can help us.
Newspaper:
Related attributes:
columns
: column count or column width,such ascolumns: 2, columns: 200px, columns: 2 auto...
.
column-rule
: divider line style,like border
attribute, 1px black line:1px solid black
.
column-gap
: gap width between columns。
column-span
: makes it possible for an element to span across all columns when its value is set to all, like header in paragraph.
Full demo:
See the Pen by (@justforuse) on CodePen.
Compatibility:
👇 Please leave your comment if you like this.👇