codegurukool.com · Free coding tutorials & online compiler

Home › CSS Tutorial › CSS overflow

CSS overflow

Handle content that is too big.

Values: visible, hidden, scroll, auto. Use overflow-x and overflow-y to split them.

Example code

<style>div{width:180px;height:70px;overflow:auto;border:2px solid #888}</style>
<div>This is a lot of text that does not fit in the small box so the box scrolls instead of spilling. More text here, and more again.</div>

Run this code in the online editor

← CSS z-indexCSS float →