Forum:Hovered link style

I added a line in my CSS to have dotted border on hovered links.

But this also applies to images which are links! I didn't expect that so I tried
 * and

But none of them seemed working. How to avoid having border on images?


 * Images, even those that link to pages, shouldn't have a bottom border in the first place. You have an example of a wiki that does? Rappy 03:47, May 20, 2012 (UTC)


 * Sure. Please see this page and the CSS


 * Try this CSS instead of the original above: That would be better than adding the bottom border then trying to remove it only from images. Alternatively, (since .not is CSS3) you can add:  to your original CSS above. Just make sure this code is placed after the code adding the border to links. Rappy 04:40, May 20, 2012 (UTC)


 * I tried both of them separately then together but in both ways they aren't applied. Did I do something wrong?



Try this code: -- Sam Wang (talk) 05:25, May 20, 2012 (UTC)
 * Or how about this:


 * Sam Wang (talk) 05:27, May 20, 2012 (UTC)