How to stop images that are also links from being underlined?
Posted 17 years 11 months ago
On pretty much any template here, in the main css there is a text decoration of underlined rule for links. My problem is, that this also causes images to become underlined if I decide to make them links. So is there something I can put in the code where the image is applied to stop it from happening to just the images? I don't want to remove the rule all together, because I do want my text links to remain underlined. I tried adding text-decoration:none; to the span element that was there to center align the text under the image, but that didn't seem to do anything. So anyone know how I can stop the images from becoming underlined when I make them a link?
Re: How to stop images that are also links from being underlined?
Posted 17 years 11 months ago
Hmm, the border thing I have been using to stop the border, but for some reason my virtuemart images seem to get underlined...will try your other option:) Thanks
Re: How to stop images that are also links from being underlined?
Posted 17 years 11 months ago
I think there may be something in virtuemart doing it. After James's comment, I realized that I always do a border: 0 for images, not a text-decoration: none, so it seems only on my product pages that the images are underlined, and not bordered:) I will try applying that statement to the template though, in the least, it will stop me from manually adding border:0 to every image I link:)
Anyways, if you look in the upper right corner, there's a thumbnail there, and a text link under it that is underlined, which it is supposed to be, butt he image also has an underline under it, which we don't want. I think the styling is in virtuemart somewhere, just like the description text used to have an italic styling due to the flypage file setting the entire descriptiontable to style of italic. That one took me a while to figure out, lol! If anyone knows where I can make a change to get rid of the underline under the image, it would be greatly appreciated:)
Re: How to stop images that are also links from being underlined?
Posted 17 years 11 months ago
I added that, but the underline is still there. Would the fact that I am using the slimbox effect for the pictures make a difference here? Like perhaps the img tag isn't being used because of that or something?