You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > webkitColumnBreakBefore
webkitColumnBreakBefore style property
Specifies or retrieves whether a column break should occur before an element.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: -webkit-column-break-before |
Possible values:
The type of this property is string.
One of the following values:
Always force a column break before the element. | |||||||
Default. Insert a column break before the element when necessary. | |||||||
Avoid a column break before the current element. | |||||||
Takes the value of this property from the computed style of the parent element. |
Default: auto.
Example HTML code 1:
This is only a demonstration of how the -webkit-column-break-before property should work, but it doesn't take any effect in Google Chrome and Safari:
|
|||
<head> <style> #container { -webkit-column-count: 4; -webkit-column-width: 140px; -webkit-column-rule-width : 3px; -webkit-column-rule-style : solid; -webkit-column-rule-color : red; } h1 { -webkit-column-break-before: always; } </style> </head> <body> <div id="container"> <h1>The header of the first column</h1> Some content within <h1>The header of the second column</h1> Some content within <h1>The header of the third column</h1> Some content within <h1>The header of the fourth column</h1> Some content within </div> </body> |
|||
|
|||
Did you find this example helpful?
|
Supported by objects:
CSSStyleDeclaration, htmlElement.style
HTML elements:
a, abbr, acronym, address, b, bdo, big, blockquote, body, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, html, i, ins, isindex, kbd, label, legend, li, marquee, menu, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, table, td, textarea, th, tt, u, ul, var, xmp
Related pages:
webkitColumnBreakAfter
webkitColumnBreakInside
MozColumnCount
MozColumnGap
webkitColumnRule
webkitColumnRuleColor
webkitColumnRuleStyle
webkitColumnRuleWidth
MozColumnWidth
webkitColumnBreakInside
MozColumnCount
MozColumnGap
webkitColumnRule
webkitColumnRuleColor
webkitColumnRuleStyle
webkitColumnRuleWidth
MozColumnWidth
External links:
User Contributed Comments