column-span

  • Revision slug: CSS/column-span
  • Revision title: column-span
  • Revision id: 354817
  • Created:
  • Creator: FredB
  • Is current revision? No
  • Comment

Revision Content

{{ CSSRef() }}

Summary

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

  • {{Xref_cssinitial()}}{{Cssxref("none")}}
  • Applies to in-float block-level elements, that is all block-level element that are not floating or absolutely positioned.
  • {{Xref_cssinherited()}} no
  • Media {{Xref_cssvisual()}}
  • {{Xref_csscomputed()}} as specified

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
{{ SpecName('CSS3 Multicol', '#column-span0', 'column-width') }} {{ 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 Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }} {{ CompatUnknown() }} {{ CompatNo() }} {{ CompatUnknown() }} 11.1+ {{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}

See also

  • {{ CSS_Reference:Columns() }}

Revision Source

<div>
  {{ CSSRef() }}</div>
<h2 id="Summary" name="Summary">Summary</h2>
<p>The <code>column-span</code> <a href="/en-US/docs/CSS" title="/en-US/docs/CSS">CSS</a> property makes it possible for an element to span across all columns when its value is set to <code>all</code>. An element that spans more than one column is called a <strong>spanning element</strong>.</p>
<ul class="cssprop">
  <li><dfn>{{Xref_cssinitial()}}</dfn>{{Cssxref("none")}}</li>
  <li><dfn>Applies to</dfn> in-float block-level elements, that is all block-level element that are not floating or absolutely positioned.</li>
  <li><dfn>{{Xref_cssinherited()}}</dfn> no</li>
  <li><dfn>Media</dfn> {{Xref_cssvisual()}}</li>
  <li><dfn>{{Xref_csscomputed()}}</dfn> as specified</li>
</ul>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="syntaxbox">
column-span: none     or
column-span: all
</pre>
<p>where:</p>
<dl>
  <dt>
    <code>none</code></dt>
  <dd>
    The element does not span multiple columns.</dd>
  <dt>
    <code>all</code></dt>
  <dd>
    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 id="Examples" name="Examples">Examples</h2>
<pre class="brush:css">
h1, h2 {
  column-span: all;
}
</pre>
<h2 id="Specifications" name="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specification</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ SpecName('CSS3 Multicol', '#column-span0', 'column-width') }}</td>
      <td>{{ Spec2('CSS3 Multicol') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">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>Chrome for 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>{{ CompatUnknown() }}</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>11.1+</td>
        <td>{{ CompatVersionUnknown() }}{{ property_prefix('-webkit') }}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_also" name="See_also">See also</h2>
<ul>
  <li>{{ CSS_Reference:Columns() }}</li>
</ul>
Revert to this revision