Name

overflow

Values:

visible | hidden | scroll | auto | inherit

Initial value:

visible

Applies to:

Block-level and replaced elements.

Inherited:

No.

Computed value:

As specified.

Description:

This defines what happens to content that overflows the content area of an element. For the value scroll, user agents should provide a scrolling mechanism whether or not it is actually needed; thus, for example, scrollbars would appear even if all content can fit within the element box.

Examples:

#masthead {overflow: hidden;}
object {overflow: scroll;}

Supported by:

Firefox, Internet Explorer, Opera, Safari.

Note:

There are layout bugs associated with visible in IE6 and earlier.

Get CSS Pocket Reference, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.