Martin Schneider 11/16/2022

Multi-Line Padded Text and box-decoration-break

Read Original

This article explains how to use the modern CSS property 'box-decoration-break: clone' to easily create padded text backgrounds that work across multiple lines. It addresses a common design problem where single-line background solutions fail with longer text, providing a simple CSS implementation that works in all major browsers.

Multi-Line Padded Text and box-decoration-break

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes