HomeReferencesCSS Properties

CSS Property: overflow

Specifies what should happen to the overflow - the portions of content that do not fit inside a box.

HTML Dog, The Book HTML Dog book cover

HTML Dog is hosted by Titan Internet

Possible Values

  • inherit
  • visible (default) - overflow spills over the box.
  • hidden - overflow can not be seen.
  • scroll - the box scrolls to accommodate the overflow.
  • auto - similar in practice to scroll, the box scrolls to accommodate the overflow.

Example


#content {
	width: 500px;
	overflow: hidden;
}