O'Reilly logo

CSS Pocket Reference, 4th Edition by Eric A. Meyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

overflow-x

Values:

visible | hidden | scroll | auto | no-display | no-content

Initial value:

visible

Applies to:

Nonreplaced elements with a display value of block or inline-block

Inherited:

No

Computed value:

Same as declared value

Description:

Defines the overflow behavior along the horizontal (X) axis of the element; that is, the left and right edges of the element.

Examples:

#masthead {overflow-x: hidden;}
object {overflow-x: visible;}

Note:

As of mid-2011, no-display and no-content were not supported by any major browser.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required