The text-overflow-ellipsis CSS property controls how the hint on overflowed content that is not displayed is signaled to the users. The presence of the hint is controlled with CSS property text-overflow-mode. Shorthand property is text-overflow.
Overview tableU+2026
text-overflow-ellipsis
text-overflow-ellipsis: string
<div class="overflowed overflowed-ellipsis">
<p>This is an example text showing nothing interesting but the truncated content via text-overflow shorthand property.</p>
</div>
<div class="overflowed overflowed-ellipsis-word">
<p>This is an example text showing nothing interesting but the truncated content via text-overflow shorthand property.</p>
</div>
.overflowed > p {
width: 10em;
height: 5em;
white-space: nowrap;
overflow: hidden;
}
.overflowed-ellipsis > p {
text-overflow-mode: ellipsis;
text-overflow-ellipsis: '[more]';
}
.overflowed-ellipsis-word > p {
text-overflow-mode: ellipsis-word;
text-overflow-ellipsis: '[more]';
}
Usage
Currently it is not widely supported in any major browsers.
Notes
Because the initial value (U+2026) of the overflow visual hint after the element box may not be easily rendered in some situations, the user agent may replace it by a sequence of 3 FULL STOP characters (U+002E).
See also Related articles CSS Attributestext-overflow-ellipsis
text-overflow-ellipsis
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4