Friday, 24 June 2011

CSS3 overflow-y Property

This can be used to clip the contents of a DIV element when the content overflows the element's content area.

Example

div
{
overflow-y:scroll;
}

The overflow-y property specifies whether or not to clip the top/bottom edges of the content - if it overflows the element's content area.

Tip: Use the overflow-x property to determine clipping at the left and right edges.
Default value: visible
JavaScript syntax: object.style.overflowY="scroll"

Syntax
overflow-y: visible|hidden|scroll|auto|no-display|no-content;

Click here to play with it using W3Schools Try it editor

No comments:

Post a Comment