text-overflow
Controls how text is displayed when it is longer than its containing area.
Compatibility
text-overflowFirefox 7+ Safari 5+, Chrome 10+ Internet Explorer 9+ Opera 11+
Not supported by Firefox prior to version 7. For detailed compatibility info see caniuse.com.
- Firefox 7+
- Safari 5+, Chrome 10+
- Internet Explorer 9+
- Opera 11+
General description
text-overflow: 1 clip
- 1 The default behavior of words within a text paragraph, which are longer than its container. They simply overflow its boundaries. This is closely related to the
overflowproperty. As soon as it is set tohidden, the text gets clipped, atautothe container becomes scrollable until the end of the text is reached.

Alice did not at all like the tone of this remark, and thought it would be as well to introduce a very long word: floccinaucinihilipilification
Inspect me!?
Examples
Abbreviated with the ellipsis character
text-overflow: 1 ellipsis
- 1 As soon as
overflowis set tohiddenlonger words get clipped at the end and abbreviated with the ellipsis character. Only works in combination with the mentionedoverflowvalue.

Alice did not at all like the tone of this remark, and thought it would be as well to introduce a very long word: floccinaucinihilipilification
Inspect me!?
Text running in one line
text-overflow: 1 ellipsis
- 1 Another property that is closely related to
text-overflowiswhite-space. When it is set tonowrapthe whole paragraph runs in one line, detaining it from wrapping.
Alice did not at all like the tone of this remark, and thought it would be as well to introduce a very long word: floccinaucinihilipilification
Inspect me!?
Further reading
For more info see the W3C site, the Safari site, the MSDN site and the site at MDN (including compatibility info for older browser versions).


