Jump to content

IE and img in links **RESOLVED**


matthyx

Recommended Posts

Hello,To make some links look more fancy, I am adding an image in front of them with this kind of definition in my CSS:.mylink { background: url(mytinyimage.png) left center no-repeat; padding-left: 13px;}Everything works fine: XHTML 1.0 strict and CSS validated, rendering fine in Firefox.Unfortunately, some of my friends are using IE6 and, with it, a 1px blue border appears around the image. This is pretty ugly as mytinyimage.png has a rounded shape...Is there a way to force-remove this border?

Edited by Skemcin
Link to comment
Share on other sites

It would help if you posted all of your HTML here from that page, so people can help you more effectively. or a link is fine.

Link to comment
Share on other sites

It's still a link, right? The image is a background, not part of the link itself?Trytext-decoration: none;orborder-style: none;

Link to comment
Share on other sites

After playing around with it, I figured out it was the image itself. Apearrently IE doesn't like .png images. GIF's worked great though.here you go: edited - Removed image
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...