Pretty html highlighting using <span>
I highlight text in an HTML document using <span> tags around the selected content. The span class has background-color as well as a border-radius . It works well.
I would like the highlight to expand slightly beyond the usual <span> content extents. That is, a few pixels to the left of the span and a few pixels to the right of the span. Ideally, I would do this without marking up the content itself.
Any good css tricks I can use to achieve this?
+4