{"id":270438,"date":"2018-05-17T06:57:42","date_gmt":"2018-05-17T13:57:42","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=270438"},"modified":"2021-12-28T12:22:10","modified_gmt":"2021-12-28T20:22:10","slug":"block-overflow","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/b\/block-overflow\/","title":{"rendered":"block-overflow"},"content":{"rendered":"\n

The block-overflow<\/code> property truncates text and indicates more content follows by inserting an ellipsis or custom string after a number of lines that is set by the max-lines<\/code> property.<\/p>\n\n\n\n\n\n\n\n

The property has been introduced in the Editor’s Draft of the CSS Overflow Module Level 3 specification<\/a>. That means it’s experimental at the moment and considered a work in progress. In fact, you can follow the conversation<\/a> which includes chatter about renaming the property altogether.<\/p>\n\n\n

Syntax<\/h3>\n\n\n
.module {\n  block-overflow: [clip | ellipsis | ];\n  max-lines: []; \/* required by block-overflow *\/\n}<\/code><\/pre>\n\n\n\n

block-overflow<\/code> accepts the following values:<\/p>\n\n\n\n