overflow

The overflow property specifies whether content of a block-level element is clipped when it overflows the element's box.

CSS2

Syntax

overflow: visible | hidden | scroll | auto | inherit
Initial: visible
Applies To: non-replaced block-level elements, table cells, and inline-block elements
Inherited: no
Percentages: NA
Media: visual

Values

overflow: value
Value Initial Description
auto
hidden
scroll
visible visible

DOM

[window.]document.getElementById("element-id").style.overflow = "overflow";

Example | auto

Example | hidden

Example | scroll

Example | visible

Example | DOM

External

W3C Cascading Style Sheets Level 2 Revision 1 (CSS 2.1) Specification