Revision 592155 of orphans

  • Revision slug: Web/CSS/orphans
  • Revision title: orphans
  • Revision id: 592155
  • Created:
  • Creator: cvrebert
  • Is current revision? No
  • Comment lift the entire spec table from the better one on the Widows page

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.

{{cssbox("orphans")}}

Syntax

Formal syntax: {{csssyntax("orphans")}}
orphans: 2
orphans: 3

orphans: inherit

Values

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

Examples

---

Specifications

Specification Status Comment
{{SpecName('CSS3 Fragmentation', '#widows-orphans', 'orphans')}} {{Spec2('CSS3 Fragmentation')}} Extends orphans to apply to any type of fragment, like pages, regions or columns.
{{SpecName('CSS3 Multicol', '#filling-columns', 'orphans')}} {{Spec2('CSS3 Multicol')}} Recommendations to consider widows in relation with columns
{{SpecName('CSS2.1', 'page.html#break-inside', 'orphans')}} {{Spec2('CSS2.1')}} Initial specification.

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

<div>
 {{CSSRef}}</div>
<h2 id="Summary" name="Summary">Summary</h2>
<p>The <code>orphans</code> <a href="/en-US/docs/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. This property is normally used to control how page breaks occur.</p>
<p>{{cssbox("orphans")}}</p>
<h2 id="Syntax" name="Syntax">Syntax</h2>
<pre class="twopartsyntaxbox">
<a href="/en-US/docs/CSS/Value_definition_syntax" title="CSS/Value_definition_syntax">Formal syntax</a>: {{csssyntax("orphans")}}
</pre>
<pre>
orphans: 2
orphans: 3

orphans: inherit
</pre>
<h3 id="Values" name="Values">Values</h3>
<dl>
 <dt>
  <code>&lt;integer&gt;</code></dt>
 <dd>
  Only positive values are allowed.</dd>
 <dt>
  <code>inherit</code></dt>
 <dd>
  Takes the same specified value as the property for the element's parent.</dd>
</dl>
<h2 id="Examples" name="Examples">Examples</h2>
<div>
 ---</div>
<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 Fragmentation', '#widows-orphans', 'orphans')}}</td>
   <td>{{Spec2('CSS3 Fragmentation')}}</td>
   <td>Extends <code>orphans</code> to apply to any type of fragment, like pages, regions or columns.</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS3 Multicol', '#filling-columns', 'orphans')}}</td>
   <td>{{Spec2('CSS3 Multicol')}}</td>
   <td>Recommendations to consider <code>widows</code> in relation with columns</td>
  </tr>
  <tr>
   <td>{{SpecName('CSS2.1', 'page.html#break-inside', 'orphans')}}</td>
   <td>{{Spec2('CSS2.1')}}</td>
   <td>Initial specification.</td>
  </tr>
 </tbody>
</table>
<h2 id="Browser_compatibility" name="Browser_compatibility">Browser compatibility</h2>
<div>
 {{CompatibilityTable}}</div>
<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" name="See_also">See also</h2>
<ul>
 <li>{{cssxref("widows")}}</li>
 <li>{{cssxref("Paged Media")}}</li>
</ul>
Revert to this revision