Menu Home

text-overflow

osbo.com | CSS | Properties | text-overflow

The text-overflow CSS property specifies rendering when inline content overflows its end line box edge in the inline progression direction of its block container element ("the block") that has overflow other than visible.

Syntax

CSS

text-overflow: value;

JS

object.style.textOverflow = "value";

Values

<'text-overflow'> = clip | ellipsis
clip

Clip inline content that overflows its block container element.

ellipsis

Render an ellipsis character (U+2026) to represent clipped inline content.

Initial

clip

Examples

clip

ellipsis

JS

World Wide Web Consortium (W3C)