overflow-x

  • Revision slug: CSS/overflow-x
  • Revision title: overflow-x
  • Revision id: 24532
  • Created:
  • Creator: jeroenp
  • Is current revision? No
  • Comment 2 words added

Revision Content

{{ CSSRef() }}

Summary

overflow-x specifies whether to clip content, render a scroll bar or display overflow content of a block-level element, when it overflows at the left and right edges. 

  • {{ Xref_cssinitial() }}: {{ Cssxref("visible") }}
  • Applies to: (non-replaced) block and inline-block elements
  • {{ Xref_cssinherited() }}: no
  • Percentages: n/a
  • Media: {{ Xref_cssvisual() }}
  • {{ Xref_csscomputed() }}: as specified, except ‘visible’

Syntax

overflow-x:  visible | hidden | scroll | auto

Values

visible
Content is not clipped, it may be rendered outside the content box.
hidden
The content is clipped and no scrollbars are provided.
scroll
The content is clipped and desktop browsers use scrollbars, whether or not any content is clipped. This avoids any problem with scrollbars appearing and disappearing in a dynamic environment. Printers may print overflowing content.
auto
Depends on the user agent. Desktop browsers like Firefox provide scrollbars if content overflows.

Examples

{{ CSSRefExampleLink("PROPERTYNAME") }} {{ Fixeg() }}

[fixme]

Notes

 

Specifications

Browser compatibility

Browser Lowest Version
Internet Explorer 5.0 (*)
Firefox 1.5
Opera 9.5
Safari 3.0

(*) IE8 introduced -ms-overflow-x as a  synonym for overflow-x. Don't use the -ms- prefix.

See also

{{ Cssxref("overflow") }}, {{ Cssxref("overflow-y") }}

{{ languages( { "pl": "pl/Dokumentacja_CSS/W\u0142asno\u015bci_szablonu", "ko": "ko/CSS_Reference/Property_Template" } ) }}

Revision Source

<p>{{ CSSRef() }}</p>
<h3 name="Summary">Summary</h3>
<p><code>overflow-x </code>specifies whether to clip content, render a scroll bar or display overflow content of a block-level element, when it overflows at the left and right edges. </p>
<ul> <li>{{ Xref_cssinitial() }}: {{ Cssxref("visible") }}<span class="comment"><br> </span></li> <li>Applies to: (non-replaced) block and inline-block elements<span class="comment"><br> </span></li> <li>{{ Xref_cssinherited() }}: no</li> <li>Percentages: n/a</li> <li>Media: {{ Xref_cssvisual() }}</li> <li>{{ Xref_csscomputed() }}: as specified, except ‘visible’</li>
</ul>
<h3 name="Syntax">Syntax</h3>
<pre class="eval">overflow-x:  visible | hidden | scroll | auto
</pre>
<h3 name="Values">Values</h3>
<dl> <dt>visible</dt> <dd>Content is not clipped, it may be rendered outside the content box.</dd> <dt>hidden</dt> <dd>The content is clipped and no scrollbars are provided.</dd> <dt>scroll</dt> <dd>The content is clipped and desktop browsers use scrollbars, whether or not any content is clipped. This avoids any problem with scrollbars appearing and disappearing in a dynamic environment. Printers may print overflowing content.</dd> <dt>auto</dt> <dd>Depends on the user agent. Desktop browsers like Firefox provide scrollbars if content overflows.</dd>
</dl>
<h3 name="Examples">Examples</h3>
<p>{{ CSSRefExampleLink("PROPERTYNAME") }} {{ Fixeg() }}</p>
<pre class="eval">[fixme]
</pre>
<h3 name="Notes">Notes<span class="comment"><br>
</span></h3>
<p> </p>
<h3 name="Specifications">Specifications</h3>
<ul> <li><a class="external" href="http://www.w3.org/TR/css3-box/#overflow" title="http://www.w3.org/TR/css3-box/#overflow">CSS3 Box Model #overflow</a></li>
</ul>
<h3 name="Browser_compatibility">Browser compatibility</h3>
<table class="standard-table"> <tbody> <tr> <th>Browser</th> <th>Lowest Version</th> </tr> <tr> <td>Internet Explorer</td> <td><strong>5.0</strong> (*)<strong><br> </strong></td> </tr> <tr> <td>Firefox</td> <td><strong>1.5</strong></td> </tr> <tr> <td>Opera</td> <td><strong>9.5</strong></td> </tr> <tr> <td>Safari</td> <td><strong>3.0</strong></td> </tr> </tbody>
</table>
<p>(*) IE8 introduced<code> -ms-overflow-x </code>as a  synonym for<code> overflow-x</code>. Don't use the <code>-ms-</code> prefix.</p>
<h3 name="See_also">See also</h3>
<p>{{ Cssxref("overflow") }}, {{ Cssxref("overflow-y") }}<span class="comment"><br>
</span></p>
<p>{{ languages( { "pl": "pl/Dokumentacja_CSS/W\u0142asno\u015bci_szablonu", "ko": "ko/CSS_Reference/Property_Template" } ) }}</p>
Revert to this revision