-
STEP-7XX
1-
Lecture1.1
-
-
STEP-700
11-
Lecture2.1
-
Lecture2.2
-
Lecture2.3
-
Lecture2.4
-
Lecture2.5
-
Lecture2.6
-
Lecture2.7
-
Lecture2.8
-
Lecture2.9
-
Lecture2.10
-
Lecture2.11
-
-
STEP-701
9-
Lecture3.1
-
Lecture3.2
-
Quiz3.1
-
Lecture3.3
-
Lecture3.4
-
Lecture3.5
-
Lecture3.6
-
Lecture3.7
-
Lecture3.8
-
-
STEP-702
5-
Lecture4.1
-
Lecture4.2
-
Lecture4.3
-
Lecture4.4
-
Lecture4.5
-
-
STEP-703
4-
Lecture5.1
-
Lecture5.2
-
Lecture5.3
-
Lecture5.4
-
-
STEP-704
4-
Lecture6.1
-
Lecture6.2
-
Lecture6.3
-
Lecture6.4
-
-
STEP-705
4-
Lecture7.1
-
Lecture7.2
-
Lecture7.3
-
Lecture7.4
-
iop-701 | CSS Overflow Property | Lesson
The overflow CSS property specifies what to do when an element’s content is too large to fit in its block formatting context. It is a shorthand for the overflow-x and overflow-y properties.
The options include clipping, showing scrollbars, or displaying the content flowing out of its container into the surrounding area.
Specifying a value other than visible (the default) creates a new block formatting context. This is necessary for technical reasons — if a float intersected with the scrolling element it would forcibly rewrap the content after each scroll step, leading to a slow scrolling experience.
In order for overflow to have an effect, the block-level container must have either a set height (height or max-height) or white-space set to nowrap.
Syntax
/* Keyword values */
overflow: visible;
overflow: hidden;
overflow: scroll;
overflow: auto;
/* Global values */
overflow: inherit;
overflow: initial;
overflow: unset;
The overflow property is specified as a single keyword chosen from the list of values below.
Values
- visible
- Content is not clipped and may be rendered outside the padding box.
- hidden
- Content is clipped if necessary to fit the padding box. No scrollbars are provided.
- scroll
- Content is clipped if necessary to fit the padding box. Browsers display scrollbars whether or not any content is actually clipped. (This prevents scrollbars from appearing or disappearing when the content changes.) Printers may still print overflowing content.
- auto
- Depends on the user agent. If content fits inside the padding box, it looks the same as visible, but still establishes a new block-formatting context. Desktop browsers provide scrollbars if content overflows.
- overlay
- Behaves the same as auto, but with the scrollbars drawn on top of content instead of taking up space. Only supported in WebKit-based (e.g., Safari) and Blink-based (e.g., Chrome or Opera) browsers.