How to make a selection of the active item of this type
(there is a layout)
Example with: before and: after.
It works in all browsers that I have :)
Threat code did not brush, in any case, this is not the final version, judging by the layout ...
Or wrap links in additional elements, which specify different "backgrounds", or use pseudo-classes: before and: after.