overflow
Definition
The overflow property specifies if content of a block-level element should be clipped when it is larger than the parent element. The screen shot below shows a div element that is 150px by 150px.

The screen shot below shows what happens when a div element contains an image that is larger than the dimensions of the div element.

The screen shot below shows what happens when a div element contains an image that is larger than the dimensions of the div element, and the overflow property is set to hidden.

The screen shot below shows what happens when a div element contains an image that is larger than the dimensions of the div element, and the overflow property is set to scroll.

Example
div {width: 150px;height: 150px;border: 3px solid red;overflow: hidden;}
Characteristics
Possible values
visible- Content is not clipped by the rectangle of the parent element.
hidden- Content is clipped by the rectangle of the parent element.
scroll- Content is clipped by the rectangle of the parent element but scroll bars are provided to enable viewing of content outside the clipped region.
auto- Depends on Web browser.
inherit- Use the same computed value as the parent element for this property.
Default value
visible
Applies to
Block elements, th and td.
Inherited
No
See also