Use of the text-overflow property:
![]()
The text-overflow property is supported in all major browsers.
The text-overflow property specifies what should happen when text overflows the containing element.
| Default value: | clip |
|---|---|
| Inherited: | no |
| Version: | CSS3 |
| JavaScript syntax: | object.style.textOverflow="ellipsis" |
| Value | Description | Play it |
|---|---|---|
| clip | Clips the text | Play it » |
| ellipsis | Render an ellipsis ("...") to represent clipped text | Play it » |
| string | Render the given string to represent clipped text |
Text-overflow with a hover effect
This example demonstrates how to display the entire text when hover over the
element.
CSS3 tutorial: CSS3 Text Effects
Your message has been sent to W3Schools.