Gets or sets the optimal width of the columns in a multi-column element.
This property is read/write.
![]() |
Syntax
column-width:
<length>
| auto
Property values
The column width.
- length
-
A floating-point number, followed by either an absolute units designator (
cm,mm,in,pt, orpc) or a relative units designator (em,ex, orpx), that indicates the optimal width. For more information about the supported length units, see CSS Length Units Reference. auto-
Default. The optimal column width is determined through other property values of the multi-column element, such as columnCount.
CSS information
| Applies To | non-replaced block-level elements (except table elements), table cells, and inline-block elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value | auto |
Remarks
The actual column width may vary from the value specified due to available space.
To ensure that the exact value specified for this property is used, all property values of the multi-column element that pertain to length (such as width, column-width, column-gap, and column-rule-width) must be specified.
See also
- CSSStyleDeclaration
- currentStyle
- style
- address
- blockQuote
- div
- dl
- fieldSet
- form
- noFrames
- noScript
- ol
- p
- pre
- table
- ul
- dd
- dt
- li
- tBody
- td
- tFoot
- th
- tHead
- tr
- button
- del
- ins
- map
- object
- script
Send comments about this topic to Microsoft
Build date: 11/29/2012
