overflow: ***;
Browser |
|
---|
The overflow property controls what happens to the overflowed content.
Applying this property to the BODY (or HTML) element applies the specified style to an entire page.
When the "hidden" value is specified for this property, the scrollbars are not displayed.
body {
overflow: hidden;
}
Property | Value | Explanation |
---|---|---|
overflow | hidden | scrollbars are not displayed |
- controls what happens to the overflowed content
(Other values can be seen)
- The element to which the style should be applied
-
- Standards mode : Apply this style to the HTML and BODY element.
- Quirks mode : Apply this style to the BODY element.
Example of Standards mode :
html, body {
overflow: hidden;
}