Is it possible to have a contiguous link, where the text is normally underlined on mouse hover, but in the middle have a section (eg an image) without this underline? This does not work:
<a href="#">one <span style="text-decoration:none;">two</span> <img src="img.png" style="border:0px; text-decoration:none;"> three</a>
What I really wanted was to have an image “attached” to links, without it getting underlined on hover. Here is a solution I came up with:
image.
can move the image to make it better
aligned with the text.
is higher than the text padding-top
and padding-bottom can be used to
tweak the appearance.
This technique can also be used with CSS sprites like this:
I used a similar technique to use CSS sprites instead of ordinary inline images:
Hope this helps someone