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

overflow-x

Description

The overflow-x property for CSS specifies the handling of overflow in the horizontal direction.

Syntax

CSS

overflow-x: value;

JS

object.style.overflowX = "value";

Values

<'overflow-x'> = visible | hidden | clip | scroll | auto
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