Monday, June 6, 2011

What is overflow in CSS?


The CSS property Overflow can be used when displaying content. It regulates the scrollbars.

You can use 4 variables in the element overflow, namely auto, hidden, scroll and visible.
Auto will automatically add a scrollbar when needed.
Hidden will not show a scrollbar, but ‘hide’ the content that usually expand the box.
Scroll will always add a scrollbar.
The value visible will not expand the div, but will just display all the content without changing the div’s height

No comments:

Post a Comment