I'm using a background colour for my links and also adding a bit of padding so that they are nicely highlighted on the page. The only trouble with doing this is that any images that are being used as links also have the link background colour included, which I don't want to appear on images.
What it seems to do though is add the padding and background colour to the bottom of the image and not all of the way around, which is what I would have thought would happen. I've tried doing this in CSS:
img a {
background: none;
padding: 0;
}
But that doesn't seem to do anything?
Without applying a separate class to each image on the site is there any way around this to stop the padding and background colour of a normal text link appear on my images?
Any help would be greatly appreciated.