I have a <p>
containing two <span>
s,
and I want one of them to float right, and each to be on an individual line (achieved by display:block
).
on hover, they both should be highlighted, so I have put a :hover
on the surrounding <p>
.
Still, only one span
gets highlighted.
Why? And how can I change it?
https://jsfiddle.net/o8wk7n8t/
Thank you