The overflow
property controls what happens when content inside an element is too large to fit in the given box.
overflow: auto
will show scrollbars only when necessary:
div { width: 300px; height: 100px; overflow: auto; }
overflow-x
and overflow-y
for horizontal and vertical control separately.overflow: hidden
is useful for clipping content or controlling layout breaks.Help others discover Technorank Learning by sharing your honest experience.
Your support inspires us to keep building!