This is my code:
<div><p><span>... highlighted text ...</span></p><p>Chapter info</p></div>
This is what it currently looks like:
http://i48.tinypic.com/2dqvo1i.png
Is there a way to add padding to the sides of the highlighted text? Regular padding on the SPAN doesn't work, because it only takes into account the the beginning and end of the sentence, not every line separately.
Any ideas? CSS3 code is fine.
A simple way is to add this to your style sector definitions:
span {
padding-left: 8px;
padding-right: 8px;
}
Also it works for "p" (and for others) instead of "span".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With