Easy Tutorial
❮ Prop Tabledata Ch Prop Style Boxshadow ❯

Style textOverflow Property

Style Object

Example

Change the textOverflow property:


Definition and Usage

The textOverflow property specifies how text should be displayed when it overflows the containing element.


Browser Support

All major browsers support the textOverflow property.


Syntax

Return the textOverflow property:

Set the textOverflow property:

Property Values

Value Description
clip Default value. Clips the text.
ellipsis Uses an ellipsis ("...") to represent the clipped text.
string Uses a given string to represent the clipped text.
initial Sets this property to its default value. See initial
inherit Inherits this property from its parent element. See inherit

Technical Details

Default value: clip
Return value A string, representing the text-overflow property of the element.
--- ---
CSS Version CSS3
--- ---

Related Articles

CSS Reference: text-overflow Property


Style Object

❮ Prop Tabledata Ch Prop Style Boxshadow ❯