Multi-line Padded Text with the CSS box-decoration-break Property [↗]

In this snippet, we introduce the box-decoration-break property and take a look at the granular control it gives us on inline elements, like creating multi-line padded text.

People have been trying to crack this nut for years, multi-line padded text really shouldn’t be this tricky. Anyhow, this seems like a nice solution. See demo pen here.

Tagged with:

Leave a comment

Note: Please be excellent (this is not YouTube and I reserve the right not to publish comments from muppets.) Your email address will not be published. Required fields are marked *