What is the CSS column-span property?
The column-span property in
Syntax
column-span: none|all|initial|inherit;
Property values
-
none: This is the default value. It is used to specify that the element should span across only one column. -
all: It is used to specify that the element should span across all the columns. -
initial: This sets the value to its default value. -
inherit: This inherits property from its parent value.
Code
The following is the basic
Explanation
In this example, we can see that we have made 2 columns and we span the content between these two columns.
We can also make more columns and span the content between multiple columns.