overflow-y property
3.5 | 10 | |||
Specifies what to do with content that exceeds the element's height.
If the height of an element is set and the contents of the element are higher than the specified area, then the overflow-y property provides you control over how the overflowed content is handled.
Note: The overflow-y property is supported in Firefox from version 3.5, and in Opera from version 10.
In earlier versions of Firefox and Opera, use the overflow property instead.JavaScript page for this property: overflowY. You can find other example(s) there. |
Possible values:
One of the following values:
The contents scroll inside the element's box. | |||||||
Vertical content is clipped and scroll bars are added when necessary. | |||||||
Vertical content outside the element's box is not shown. | |||||||
Content is clipped and scroll bars are added when necessary. | |||||||
Vertical content is clipped when necessary, but scroll bars are always added. | |||||||
Default. Vertical content is not clipped. |
Default: visible.
Example HTML code 1:
This example illustrates the use of the overflow-y property:
|
||||
<head> <style> .example { overflow-y: scroll; background-color: #F9F9F9; width: 200px; height: 50px; } </style> </head> <body> <div class="example"> The overflow-y property determines what to do with the vertical content outside the element's rendering area. </div> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by tags:
address, blockQuote, body, button, caption, center, dd, dir, div, dl, dt, fieldSet, form, H1, H2, H3, H4, H5, H6, html, iframe, input:file, input:password, input:search, input:text, isIndex, legend, li, listing, menu, ol, p, plainText, pre, tBody, textArea, tFoot, tHead, ul, xmp
Related pages:
External links:
User Contributed Comments