overflow-***: ***;
Browser |
|
---|---|
Type |
|
The overflow-*** property controls what happens to the horizontal or vertical overflow.
(*** = x or y)
- overflow-x : The horizontal overflow.
- overflow-y : The vertical overflow.
div {
width: 200px;
height: 100px;
overflow-x: scroll;
overflow-y: scroll;
}
Property | Value | Explanation |
---|---|---|
overflow-x overflow-y |
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 |