0
0
CSSmarkup~5 mins

Hidden, scroll, auto in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the CSS overflow: hidden; property do?
It hides any content that goes outside the element's box. The extra content is not visible and no scrollbars appear.
Click to reveal answer
beginner
How does overflow: scroll; behave in CSS?
It always shows scrollbars, even if the content fits inside the element. This lets users scroll if needed.
Click to reveal answer
beginner
Explain overflow: auto; in CSS.
It shows scrollbars only when the content is bigger than the element's box. If content fits, no scrollbars appear.
Click to reveal answer
intermediate
Which CSS overflow value should you use to hide extra content but keep the element size fixed?
overflow: hidden; is best to hide extra content and keep the element size fixed without scrollbars.
Click to reveal answer
intermediate
What is a practical use of overflow: auto; in responsive design?
It helps keep content accessible by adding scrollbars only when needed, especially on small screens or containers.
Click to reveal answer
What happens when you set overflow: hidden; on a container?
AScrollbars appear only if content overflows
BScrollbars always appear
CExtra content is hidden and no scrollbars appear
DContent resizes to fit container
Which overflow value always shows scrollbars regardless of content size?
Ascroll
Bvisible
Chidden
Dauto
When does overflow: auto; show scrollbars?
AOnly if content is bigger than container
BAlways
COnly on hover
DNever
If you want to hide overflow but still allow scrolling, which value should you NOT use?
Ascroll
Bhidden
Cauto
Dvisible
Which CSS property controls how content behaves when it overflows its container?
Avisibility
Bdisplay
Cposition
Doverflow
Describe the differences between overflow: hidden;, scroll;, and auto; in CSS.
Think about when scrollbars appear or if content is clipped.
You got /3 concepts.
    Explain a situation where using overflow: auto; is better than scroll or hidden.
    Consider responsive design and user accessibility.
    You got /3 concepts.