The CSS Overflow Attribute

This attribute determines the manner in which a browser provides a visual cue to the fact that the contents inside a block element - such as divisions or forms are not all on display. Given that block elements are designed by default to expand vertically to fit their contents, all that follows only really applies if the CSS height attribute has been used to fix the height of the element. We use the code overflow:value where value is one of:

You may well wonder what happens if this attribute is set to anything other than its default value for a paragraph element. The behavior in IE and Opera is exactly the same as with a division element. Firefox, on the other hand displays a disabled horizontal scrollbar. One of the rare bugs in Firefox or merely a correct interpretation of standards? We don't know.

This is not an inherited property - i.e. in a child element, if not assigned, it takes the default value rather than the corresponding value in its parent container.

This attribute can also be assigned the setting inherit which causes it to pick up its value from the parent element.

Jump To...

Colophon