- Description
Text-overflow effects inline content when it overflows it's block container. Overflow can only occur if the block container has an overflow value of something other then visible and when white-space is set to no-wrap.
ellipsis: Renders an ellipsis character (U+2026) or three dots "..." to represent clipped inline content.
clip: Clips inline content that overflows, any extra characters will not be visible. Characters may be only partially rendered.
<string>: replaces the overflowing content with the <string>
Most browsers support clip and ellipsis, newer values of <string> and two value for left and right are not well supported and could be removed from the spec.
- Live Example
- Play with the code in the textarea below.
- Values
- ( clip | ellipsis | <string> ){1,2} | inherit
- Default value
- clip
- Introduced in CSS version
- 2.1
- Applies to elements
- block containers where overflow value is other then visible
- Inherited
- No
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 6 7 5 11 4
Belongs to:
See the full list CSS properties and browser support: CSS Properties