Lesson 13 of 50
cssOverflow & Scrollbars
6 mins
Course progress26%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 13 of 50
css6 mins
Keep these ideas in mind as you work through the lesson.
Controls what happens when content exceeds an element’s box.
overflow:visible – default, content spills out.overflow:hidden – clips overflow, useful for UI tricks.overflow:auto – adds scrollbars only when needed.overflow-x / overflow-y – control each axis independently..gallery {
display:flex; overflow-x:auto; gap:1rem; padding:1rem;
}