CSS block-overflow Property

The block-overflow property cuts the text and indicates more content follows by inserting an ellipsis or custom string after a number of lines.

If the box contains no line box immediately preceding a region break, then the block-overflow property does not work.

Initial Value clip
Applies to Block containers.
Inherited Yes.
Animatable No.
Version CSS3
DOM Syntax object.style.blockOverflow= "ellipsis";

Syntax

block-overflow: clip | ellipsis | <string> | initial | inherit;

Example

.module {
block-overflow: [clip | ellipsis | 
<string>
];
max-lines: [
<integer>
]; /* required by block-overflow */
}

Values

Value Description
clip The rendering is not affected.
ellipsis Displays an ellipsis (...) at the end of the last line. It render as a Unicode character (U+2027) but could be changed by an equivalent based on the content language and writing mode of the User Agent being used.
<string> Renders the specified string as the block overflow ellipsis at the end of the last line. The Browser may truncate the string if it is extremely long.
initial It makes the property use its default value.
inherit It inherits the property from its parents element.

Browser support

14.0
-webkit-
x 17.0+ x 5.0
-webkit-
15.0
-webkit-



Related articles