What does the CSS `overflow` property control?
A
Text wrapping B
Spacing between elements C
Behavior of content that exceeds an element’s box D
Stacking order
Analysis & Theory
`overflow` determines what happens when content overflows an element’s box.
Which value of `overflow` hides content that overflows the container?
A
visible B
scroll C
auto D
hidden
Analysis & Theory
`hidden` clips the content that overflows the box without showing scrollbars.
What is the default value of the `overflow` property?
A
visible B
hidden C
scroll D
auto
Analysis & Theory
`visible` is the default overflow behavior, where content spills outside the box.
What does `overflow: scroll;` do?
A
Always shows scrollbars B
Hides content C
Shows scrollbars only when needed D
Removes scrollbars
Analysis & Theory
`scroll` adds both horizontal and vertical scrollbars, whether needed or not.
What does `overflow: auto;` do?
A
Hides overflow B
Always shows scrollbars C
Shows scrollbars only if content overflows D
Prevents scrolling
Analysis & Theory
`auto` adds scrollbars only when content overflows.
Which CSS property allows setting overflow for horizontal and vertical directions separately?
A
overflow-mode B
overflow-type C
overflow-x and overflow-y D
scroll-type
Analysis & Theory
`overflow-x` and `overflow-y` let you set overflow behavior separately for horizontal and vertical directions.
Which `overflow` value allows content to go outside the element’s box?
A
hidden B
scroll C
visible D
auto
Analysis & Theory
`visible` lets the overflowing content spill out of the box without clipping.
What happens if you set `overflow: hidden;` and the content is larger than the container?
A
It is resized B
It overflows C
It is clipped and not visible D
It scrolls
Analysis & Theory
`hidden` clips the content, making anything that overflows invisible.
Which of the following creates a scrollable container only when needed?
A
overflow: visible; B
overflow: auto; C
overflow: hidden; D
overflow: clip;
Analysis & Theory
`auto` only adds scrollbars when content is too big for the container.
Which value disables overflow completely?
A
none B
collapse C
hidden D
static
Analysis & Theory
`hidden` prevents any overflow from being seen or scrolled.