Bookmark
box-decoration-break
https://developer.mozilla.org/en-US/docs/Web/CSS/box-decoration-break, posted 26 Apr by peter in css development html reference webdesign
The
box-decoration-break
CSS property specifies how an element's fragments should be rendered when broken across multiple lines, columns, or pages.
Not the biggest problem in the world, but it's annoying when you're trying to use borders around words or phrases in paragraphs of text and the result looks like crap because of line breaks. Glad to know there's a simple solution.
I randomly learned this trick today from a newsletter by Victor Ponamariov so thanks for that!