javascript – How do I set span background-color so it colors the …

This post was originally published on this site

The span element is inline, so it just changes the background for where you’ve placed it. Since it’s also within a

 tag, if you want it to change the background for whitespace around the text too, then you can include that whitespace within the span.. For example, this would make the background change for some whitespace at the end of each line as well as behind the text (but only because ...
Stay up to date
Register now to get updates on promotions and coupons.

Shopping cart