Question regarding IE/Image's

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

Question regarding IE/Image's

Post by Goofan »

Hey,
So I got my site up to speed and all so I do a simple browser compatability check.
It works on all but on IE I see a small but a big visuall problem.

the image of my "buttons" got like a border around it.

the image is a .png and works fine on all other browsers but on IE it gets a black 1-2px border.
I got nothing in my Css file to indicate creating a border around them in IE or eny other browser for that matter.

I do realize this might not be a PHP problem but I know there are alot of experienced developers here which might know the answer.

Anyone got a solution or a small idea on what might make this problem of mine?

Regards,
Thomas
User avatar
lenton
Forum Commoner
Posts: 49
Joined: Sun Jun 20, 2010 6:45 am

Re: Question regarding IE/Image's

Post by lenton »

This is a CSS issue.

By default, IE borders images that are within a tags. To remove the border simply add this to your CSS code:
[text]a img { border: 0; }[/text]
User avatar
Goofan
Forum Contributor
Posts: 305
Joined: Wed Nov 04, 2009 2:11 pm
Location: Sweden

Re: Question regarding IE/Image's

Post by Goofan »

Thank you that fixed it.
Never knew that problem even existed before.

Regards,
Thomas
User avatar
twinedev
Forum Regular
Posts: 984
Joined: Tue Sep 28, 2010 11:41 am
Location: Columbus, Ohio

Re: Question regarding IE/Image's

Post by twinedev »

Oh, there a are a ton of quirks for IE when it comes to CSS... Especially if you want to work across different versions. (which is there is a death cry for IE 6 by professionals)

-Greg
Post Reply