Revision 361395 of orphans

  • Revision slug: CSS/orphans
  • Revision title: orphans
  • Revision id: 361395
  • 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.

{{cssbox("orphans")}}

Syntax

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

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

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

<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: 3
orphans: 0

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">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>
<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