HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

overflow

Description

The overflow property for CSS is shorthand for overflow-x and overflow-y.

Syntax

CSS

overflow: value;

JS

object.style.overflow = "value";

Values

<'overflow'> = [ visible | hidden | clip | scroll | auto ]{1,2}
visible

There is no special handling of overflow, the box's content is rendered outside the box if positioned there.

hidden

The box's content is clipped to its padding box and the UA must not provide any scrolling user interface to view the content outside the clipping region, nor allow scrolling by direct intervention of the user.

clip

Like hidden, but also forbids scrolling.

scroll

Indicates that the content is clipped to the padding box, but can be scrolled into view.

auto

Automatically specified by the user agent.

Initial

visible

Examples

1 · auto

2 · clip

3 · hidden

4 · scroll

5 · visible

6 · JS