The overflow property controls what happens to the overflowed content.
div {
width: 200px;
height: 100px;
overflow: scroll;
}
Property |
Value |
Explanation |
overflow |
visible |
the overflowed content is not clipped (default) (it is displayed outside the element) |
hidden |
the overflowed content is clipped (it is not displayed) |
scroll |
the overflowed content is clipped (it is displayed by the scrolling) |
auto |
if the content overflows, the scrollbar is displayed |
Screen shots of examples
In Quirks mode
Value |
MSIE |
Firefox |
Opera |
visible |
|
|
|
hidden |
|
|
|
scroll |
|
|
|
auto |
|
|
|
In Standards mode
Value |
MSIE |
Firefox |
Opera |
visible |
|
|
|
hidden |
|
|
|
scroll |
|
|
|
auto |
|
|
|
Example