asp.net.ph

Skip Navigation LinksAbakada: Back to Basics > Language References > CSS Properties > Display and Position Properties > overflow-x Property

overflow-x Attribute | overflowX Property


Sets or retrieves what should be done when the object’s content exceeds the width of the object.

Syntax

CSS { overflow-x: 'visible' | 'scroll' | 'hidden' | 'auto' }
Script object.style.overflowX = sOverflow ]

Possible Values

visible The content is not clipped.
scroll The content is clipped. Scroll bars are added even if the content does not exceed the dimensions of the objects.
hidden The content that exceeds the object’s dimensions is not shown.
auto The content is clipped and scrolling is added only when necessary.

The property is read/write with a default value of visible; the proposed cascading stylesheet ( CSS ) extension attribute is not inherited.

Remarks

For the TEXTAREA object, only the hidden value is valid. Setting the property to hidden on a TEXTAREA object hides its scroll bars.

See Also

overflow, overflowY, position



Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note