I have the follow:
<a name="a"></a><b>A</b>
I want to select the next item, the <b>
, and highlight it when the target is selecting.
To select anything in the a
tag I use: (for example)
[id]:target {background:pink;}
And that works. However, when I use this:
[id]:target + b {}
This doesn't work. Is this not possible with CSS? I wish I could wrap the a tag around the item, but I don't have that option here.