column-span

  • Revision slug: CSS/column-span
  • Revision title: column-span
  • Revision id: 27881
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment 2 words added, 2 words removed

Revision Content

{{ CSSRef() }}

Summary

The column-span CSS property makes it possible for an element to span across several columns, when its value is set to all. An element that spans more than one column is called a spanning element.

  • Value: none | all
  • Initial: none
  • Applies to: block-level elements, except floating and absolutely positioned elements
  • Inherited: no
  • Percentages: n/a
  • Media: visual
  • Computed value: as specifed

Syntax

column-span: none     or
column-span: all

where :

none
The element does not span multiple columns.
all
The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appears. The element establishes a new block formatting context.

Examples

h1, h2 {
  column-span: all;
}

Specifications

Specification Status Comment
CSS Multi-column Layout Module Level 3 {{ Spec2('CSS3 Multicol') }}  

Browser compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }} {{ CompatNo() }} 10 11.1+ {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }} {{ CompatNo() }} {{ CompatUnknown() }} 11.1+ {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}

See also

Revision Source

<p>{{ CSSRef() }}</p>
<h2>Summary</h2>
<p>The <code>column-span</code> CSS property makes it possible for an element to span across several columns, when its value is set to <code>all</code>. An element that spans more than one column is called a spanning element.</p>
<ul> <li>Value: <code>none </code>|<code> all</code></li> <li>Initial: <code>none</code></li> <li>Applies to: block-level elements, except floating and absolutely positioned elements</li> <li>Inherited: no</li> <li>Percentages: n/a</li> <li>Media: visual</li> <li>Computed value: as specifed</li>
</ul>
<h2>Syntax</h2>
<pre class="eval">column-span: none     or
column-span: all
</pre>
<p>where :</p>
<dl> <dt style="margin-left: 40px;"><code>none</code></dt> <dd style="margin-left: 40px;"><span style="color: rgb(0, 0, 0); font-family: sans-serif; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 22px; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); font-size: medium; display: inline !important; float: none; ">The element does not span multiple columns.</span></dd> <dt style="margin-left: 40px;"><code>all</code></dt> <dd style="margin-left: 40px;">The element spans across all columns. Content in the normal flow that appears before the element is automatically balanced across all columns before the element appears. The element establishes a new block formatting context.</dd>
</dl>
<h2>Examples</h2>
<pre>h1, h2 {
  column-span: all;
}
</pre>
<h2>Specifications</h2>
<table class="standard-table"> <thead> <tr style="background-color: rgb(255, 204, 255);"> <th scope="col">Specification</th> <th scope="col">Status</th> <th scope="col">Comment</th> </tr> </thead> <tbody> <tr> <td><a class="external" href="http://www.w3.org/TR/css3-multicol/#column-span0" title="http://www.w3.org/TR/css3-multicol/#column-span0">CSS Multi-column Layout Module Level 3</a></td> <td>{{ Spec2('CSS3 Multicol') }}</td> <td> </td> </tr> </tbody>
</table>
<h2>Browser compatibility</h2>
<p>{{ CompatibilityTable() }}</p>
<div id="compat-desktop"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Chrome</th> <th>Firefox (Gecko)</th> <th>Internet Explorer</th> <th>Opera</th> <th>Safari (WebKit)</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</td> <td>{{ CompatNo() }}</td> <td>10</td> <td>11.1+</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</td> </tr> </tbody> </table>
</div>
<div id="compat-mobile"> <table class="compat-table"> <tbody> <tr> <th>Feature</th> <th>Android</th> <th>Firefox Mobile (Gecko)</th> <th>IE Mobile</th> <th>Opera Mobile</th> <th>Safari Mobile</th> </tr> <tr> <td>Basic support</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</td> <td>{{ CompatNo() }}</td> <td>{{ CompatUnknown() }}</td> <td>11.1+</td> <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</td> </tr> </tbody> </table>
</div>
<h2>See also</h2>
<ul> <li><a href="/en/CSS/CSS_Reference" title="CSS Reference">CSS Reference</a></li> <li>{{ CSS_Reference:Columns() }}</li>
</ul>
Revert to this revision