
The Complete Idiot's Style Sheets Reference
| Index
| Current Category: Dimensions |
| Previous Style: outline-width
| Next Style: overflow-x
|
overflow
Specifies what the browser should do if the content of an element's box exceeds the height or width of the box.
Support:
-
See Also:
-
clip,
height,
overflow-x,
overflow-y,
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
Content that falls outside of the box 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
All of the content 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: 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: outline-width
| Next Style: overflow-x
|
|