Style textOverflow Property
Style textOverflow Property
The textOverflow property is used to define what will happen once the text overflows the containing element.
Syntax:-
Its syntax is:- object.style.textOverflow OR object.style.textOverflow = clip | ellipsis | string | initial | inherit
Return:-
Its return is:- string having text-overflow property of an element
Further Explanation:-
Value | Description |
---|---|
clip | Clips the text. |
ellipsis | Render an ellipsis "..." to represent clipped text. |
string | Render given string to represent clipped text. |
initial | Sets property to its default value. |
inherit | Inherits property from its parent element. |