
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Dimensions |
| Previous Style: overflow-x
| Next Style: padding
|
overflow-y
Specifies what the browser should do if the content of an element's box exceeds the height of the box.
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
Not supported |
5.0 and later |
Not supported |
See Also:
-
clip,
height,
overflow,
overflow-x,
width
Possible Values:
- auto
Scroll bars are added to the box only when necessary.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
4.0 and later |
Not supported |
- hidden
The element is not displayed.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
4.0 and later |
Not supported |
- scroll
Scroll bars are added to the box so the rest of the content can be displayed.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
4.0 and later |
Not supported |
-
Notes:
-
With this value, the scroll bars appear even when the content fits completely inside the box.
- visible
The element is displayed.
-
Support:
-
W3C Standard | Internet Explorer | Netscape Navigator |
CSS2 and later |
4.0 and later |
Not supported |
Example:
<P STYLE="width: 300px; height: 55px; overflow-y: scroll">
All God's children are not beautiful. Most of God's children are,
in fact, barely presentable. The most common error made in
matters of appearance is the belief that one should disdain
the superficial and let the true beauty of one's soul shine
through. If there are places on your body where this is a
possibility, you are not attractive--you are leaking.<BR>
—Fran Lebowitz
How It Looks:
All God's children are not beautiful. Most of God's children are,
in fact, barely presentable. The most common error made in
matters of appearance is the belief that one should disdain
the superficial and let the true beauty of one's soul shine
through. If there are places on your body where this is a
possibility, you are not attractive--you are leaking.
Fran Lebowitz
| Index
| Current Category: Dimensions |
| Previous Style: overflow-x
| Next Style: padding
|
|