overflow property
[This documentation is preliminary and is subject to change.]
Sets or retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object.
![]() |
Syntax
Integer value = object.put_overflow(BSTR v);Integer value = object.get_overflow(BSTR* sOverflow);
Property values
Type: BSTR
visible (visible)
-
Default. Content is not clipped and scroll bars are not added.
scroll (scroll)
-
Content is clipped and scroll bars are added, even if the content does not exceed the dimensions of the object.
hidden (hidden)
-
Content that exceeds the dimensions of the object is not shown.
auto (auto)
-
Content is clipped and scrolling is added only when necessary.
String format
visible | hidden | scroll | auto
CSS information
| Applies To | All elements |
|---|---|
| Media | visual |
| Inherited | no |
| Initial Value |
Standards information
- CSS 2.1, Section 11.1.1
Remarks
The default value for the body element is auto.
Setting the overflow property to hidden on a textArea object hides its scroll bars.
Setting the overflow property to visible causes the content to clip to the size of the window or frame that contains the object.
This property is available on the Macintosh platform as of Microsoft Internet Explorer 5.
With Microsoft Internet Explorer 6 and later, when you use the !DOCTYPE declaration to specify standards-compliant mode, this property applies to the html object.
Requirements
|
Minimum supported client | Windows XP |
|---|---|
|
Minimum supported server | Windows Server 2003 |
|
Header |
|
|
DLL |
|
See also
- Reference
- -ms-overflow-x
- -ms-overflow-y
- position
- Other Resources
- CSS Enhancements in Internet Explorer 6
Build date: 1/23/2012
