Skip to content
Justice Tech School

Overflow, Scroll and Resize

overflow controls content that does not fit: visible, hidden, scroll and auto. resize lets users resize a box. overflow-x and overflow-y work separately.

Example
<style>
.o { width: 180px; height: 60px; overflow: auto; background: #1e293b; resize: both }
</style>
<div class="o">Lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.</div>

Exercise

Scrollbars only if needed.

overflow: ;

Quiz Test

What does overflow: hidden do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.