overflow
overflow
This page has been flagged with the following issues:
High-level issues:
Summary
The overflow property controls how extra text exceeding the bounding box of an element is rendered. The overflow property can be used in conjunction with an element that has a fixed width and height, to eliminate text-induced page distortion.
Overview table
| Initial value |
|
|---|---|
| Applies to | All elements |
| Inherited | No |
| Media | visual |
| Computed value | |
| Animatable | No |
| CSS Object Model Property |
|
Syntax
-
overflow: visible -
overflow: scroll -
overflow: hidden -
overflow: auto
Values
- visible
- Default. Content is not clipped and scroll bars are not added.
- scroll
- Content is clipped and scroll bars are added, even if the content does not exceed the dimensions of the object.
- hidden
- Content that exceeds the dimensions of the object is not shown.
- auto
- Content is clipped and scrolling is added only when necessary.
Needs Examples: This section should include examples.
Notes
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. 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.
Syntax
overflow: visible | hidden | scroll | auto
Standards information
- CSS 2.1, Section 11.1.1
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic Support | 1.0 | 1.0 | 4.0 | 7.0 |
1.0 |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic support | ? | ? | ? | ? | ? | ? | ? | ? |
See also
Related articles
Box Model
- overflow
Visual Effects
- overflow
Related pages (MSDN)
CSSStyleDeclarationcurrentStyledefaultsruntimeStylestyleReference-ms-overflow-x-ms-overflow-ypositionOther ResourcesCSS Enhancements in Internet Explorer 6
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here