Created
January 5, 2022 11:13
-
-
Save elfacht/e3f4d37f4b518906e5d3963c2ffd4a29 to your computer and use it in GitHub Desktop.
Multiline padded text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* @source https://css-tricks.com/multi-line-padded-text/ */ | |
.padded-multiline { | |
line-height: 2; | |
width: 300px; | |
margin: 20px auto; | |
span { | |
background-color: #c0c; | |
color: #fff; | |
display: inline; | |
padding: 0.45rem; | |
// Needs prefixing | |
box-decoration-break: clone; | |
-webkit-box-decoration-break: clone; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment