The overflow-x property is a specific case of the generic overflow property. It controls how extra content exceeding the x-axis of the bounding box of an element is rendered.
Overview tablevisible
overflowX
overflow-x: auto
overflow-x: hidden
overflow-x: no-content
overflow-x: no-display
overflow-x: scroll
overflow-x: visible
Using overflow-x
width its values.
.hidden {
overflow-x: hidden;
}
.scroll {
overflow-x: scroll;
}
.auto {
overflow-x: auto;
}
.visible {
overflow-x: visible;
}
p {
white-space: nowrap;
}
body {
width: 20em;
margin: 0 auto;
}
Usage
The overflow-x CSS property specifies whether to clip content, render a scroll mechanism, or display overflow content of a block-level element, when it overflows at the left and right edges.
Notes
Setting the overflow-x property to visible causes the content to clip to the size of the window or frame that contains the object.
Related specificationsMozilla Developer Network : Article
Microsoft Developer Network: [Windows Internet Explorer API reference Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4