HTML and CSS Reference
In-Depth Information
Name
overflow-y
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 vertical (Y) axis of the element; that is, the top and
bottom edges of the element.
Examples:
#masthead {overflow-y: hidden;}
object {overflow-y: scroll;}
Note:
As of mid-2011,
no-display
and
no-content
were not supported by any major browser.