The W3C has added a CSS Multi Column Layout Module to CSS3 to make it easier to implement a multi-column Layout similar to that of a newspaper or magazine. Grammar:

Columns: < the column - width > | | < column - count >Copy the code

The columns property parameter consists of two main parameters: the column width and the number of columns.

parameter Parameters that
It is used to define the width of each column in multiple columns
It is used to define the number of columns in multiple columns

Example: To display 2 columns, each width 200px, code:

columns: 200px 2; 
Copy the code

Most major browsers support it so far: