What is the CSS column-width property?
The column-width property in
We can also use the
columnproperty to set the column count and width only once.
Syntax
column-width: auto|length|initial|inherit;
Property values
-
auto: It is the default value. The width of the column is specified by the browser automatically. -
length: It is used to define the width of the column. -
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 set the width between the columns as 200px.
We can also set the width according to our choice.