The columns property is a shorthand property for column-width and column-count properties.
Syntax:
selector {
columns: auto | column-width column-count | initial | inherit;
}
Values:
Possible values for column-rule-style property are:
- auto; The default value that sets "column-width" and "column-count" values to "auto (browser chooses)
- column-width; Sets the width of the column (as described here).
- column-count; Sets the numberof the columns (as described here).
- initial, inherit
NOTE: Have in mind that the width and column will affect each other, for instance we cannot have too many columns if the width is also large, depending of course on the size of the parent containing element (see example below).
Example
Example for shorthand columns property:
Comments
No comments have been made yet.
Please login to leave a comment. Login now