0
0
CSSmarkup~5 mins

Overflow property in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the CSS overflow property control?
The <code>overflow</code> property controls what happens to content that is too big to fit inside its container. It can show scrollbars, hide the extra content, or let it spill out.
Click to reveal answer
beginner
Name the four main values of the overflow property.
  • visible: Content spills out (default).
  • hidden: Extra content is hidden.
  • scroll: Always shows scrollbars.
  • auto: Shows scrollbars only if needed.
Click to reveal answer
beginner
What happens if you set overflow: hidden; on a container?
Any content that is bigger than the container will be cut off and not visible. No scrollbars will appear.
Click to reveal answer
intermediate
How does overflow: auto; improve user experience?
It only shows scrollbars when the content is too big. This keeps the page clean but still lets users scroll if needed.
Click to reveal answer
intermediate
Why is it important to use the overflow property with accessibility in mind?
Because hidden or scrollable content must be reachable by keyboard and screen readers. Proper use ensures all users can access all content.
Click to reveal answer
What is the default value of the CSS overflow property?
Ascroll
Bvisible
Chidden
Dauto
Which overflow value always shows scrollbars, even if content fits?
Avisible
Bauto
Chidden
Dscroll
If you want to hide extra content without scrollbars, which overflow value should you use?
Ahidden
Bvisible
Cscroll
Dauto
What does overflow: auto; do?
ANever shows scrollbars
BAlways shows scrollbars
CShows scrollbars only if needed
DLets content spill out
Which property would you combine with overflow to create a scrollable box?
Awidth and height
Bcolor
Cfont-size
Dmargin
Explain the different values of the CSS overflow property and when you might use each.
Think about how content behaves when it is bigger than its container.
You got /5 concepts.
    Describe how to make a box with fixed size that shows scrollbars only when content is too large.
    Combine size limits with the right overflow value.
    You got /3 concepts.