I'm trying to achieve text with a background color that wraps with a gap between each wrapped line.
Example(image):
If you use a block element you don't get the gap between wrapped lines, so I can get close using a <span>, but the left & right padding only applies to the very beginning and very end of the <span>.
I could achieve the effect just using a different <span> or block element for each line and fudge the wrapping, but then it defeats the purpose.



Reply With Quote



Bookmarks