CSS text-overflow Property

By: Dusty Arlia
Published on Sunday, June 23, 2013, 09:12 PM
Last Updated on Wednesday, July 15, 2015 at 5:49 PM
Total Updates: 2

The CSS text-overflow property controls what happens when its text overflows its containing HTML element. Text can overflow when it is prevented from wrapping because of the white-space:nowrap CSS property value or because a single word is too long to fit. The overflowed text can be clipped, represented by an ellipsis (), or represented by a specified string.

Here is the basic syntax for the text-overflow property:

text-overflow: [ clip | ellipsis | string ];