orphans

  • Revision slug: CSS/orphans
  • Revision title: orphans
  • Revision id: 340103
  • Created:
  • Creator: teoli
  • Is current revision? No
  • Comment

Revision Content

{{ CSSRef() }}

Summary

The orphans CSS property refers to the minimum number of lines in a block container that must be left at the bottom of the page.  This property is normally used to control how page breaks occur.

  • {{ Xref_cssinitial() }} 2
  • Apply to block-level elements
  • {{ Xref_cssinherited() }} yes
  • Media {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }} as specified

Syntax

orphans: <integer> | inherit

Values

<integer>
Only positive values are allowed.
inherit
Takes the same specified value as the property for the element's parent.

Examples

 

Specifications

Specifications Status Comment
{{ SpecName('CSS3 Paged Media', '#orphans', 'orphans') }} {{ Spec2('CSS3 Paged Media') }} No change.
{{ SpecName('CSS2.1', 'page.html#propdef-orphans', 'orphans') }} {{ Spec2('CSS2.1') }}  

Browser Compatibility

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 25.0 {{ CompatNo() }} 8 9.2 {{ CompatNo() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 25.0 {{ CompatNo() }} {{ CompatUnknown() }} {{ CompatUnknown() }} {{ CompatNo() }}

See Also

  • {{ cssxref("widows") }}
  • {{ cssxref("Paged Media") }}

Revision Source

<p>{{ CSSRef() }}</p>
<h2 id="Summary">Summary</h2>
<p>The <code>orphans</code> <a href="/en/CSS" title="CSS">CSS</a> property refers to the <em>minimum</em> number of lines in a block container that must be left at the bottom of the page.&nbsp; This property is normally used to control how page breaks occur.</p>
<ul class="cssprop">
  <li><dfn>{{ Xref_cssinitial() }}</dfn> <code>2</code></li>
  <li><dfn>Apply to</dfn> block-level elements</li>
  <li><dfn>{{ Xref_cssinherited() }}</dfn> yes</li>
  <li><dfn>Media</dfn> {{ Xref_cssvisual() }}</li>
  <li><dfn>{{ Xref_csscomputed() }}</dfn> as specified</li>
</ul>
<h2 id="Syntax">Syntax</h2>
<pre>
orphans: &lt;integer&gt; | inherit
</pre>
<h3 id="Values">Values</h3>
<dl>
  <dt>
    <code>&lt;integer&gt;</code></dt>
  <dd>
    Only positive values are allowed.</dd>
  <dt>
    <code>inherit</code></dt>
</dl>
<dl>
  <dd>
    Takes the same specified value as the property for the element's parent.</dd>
</dl>
<h2 id="Examples">Examples</h2>
<p>&nbsp;</p>
<h2 id="Specifications">Specifications</h2>
<table class="standard-table">
  <thead>
    <tr>
      <th scope="col">Specifications</th>
      <th scope="col">Status</th>
      <th scope="col">Comment</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>{{ SpecName('CSS3 Paged Media', '#orphans', 'orphans') }}</td>
      <td>{{ Spec2('CSS3 Paged Media') }}</td>
      <td>No change.</td>
    </tr>
    <tr>
      <td>{{ SpecName('CSS2.1', 'page.html#propdef-orphans', 'orphans') }}</td>
      <td>{{ Spec2('CSS2.1') }}</td>
      <td>&nbsp;</td>
    </tr>
  </tbody>
</table>
<h3 id="See_also" name="See_also">Browser Compatibility</h3>
<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>25.0</td>
        <td>{{ CompatNo() }}</td>
        <td>8</td>
        <td>9.2</td>
        <td>{{ CompatNo() }}</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>25.0</td>
        <td>{{ CompatNo() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatUnknown() }}</td>
        <td>{{ CompatNo() }}</td>
      </tr>
    </tbody>
  </table>
</div>
<h2 id="See_Also">See Also</h2>
<ul>
  <li>{{ cssxref("widows") }}</li>
  <li>{{ cssxref("Paged Media") }}</li>
</ul>
Revert to this revision