This is one of those tricky CSS things that I see come up every few months. I guess what better place to address it than CSS-Tricks eh?
javascript - Multi line padded text with outer and inner rounded corners in CSS - Stack Overflow
8 HTML & CSS tips for organizing code in your web project
Creating HTML Tables (Tutorial With Examples) - Shiksha Online
CSS Underline: 20+ Examples
CSS Shapes: The Ribbon
TechDoc
Upscale Your Website with the Box-Shadow Property
CSS - WalkMe Help Center
Multi-line Padded Text with the CSS box-decoration-break Property