images color change in IE

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
ivan_nn2
Forum Newbie
Posts: 5
Joined: Fri Apr 23, 2010 5:50 am

images color change in IE

Post by ivan_nn2 »

Hello everybody,...

I would ask ad advice about smt happening on IE..

I have a menu where the link are made with images (contacts, about us, brands, sign in)..

In firefox i can see them perfectly aligned ...
In IE8 i can see them perfectly aligned but i don't know why, while the first box menu (contacts) has the image of the original color, the others link images have a different color (black, to be precise)..

Do you know why happens?...

thanks, I.
rnoack
Forum Commoner
Posts: 34
Joined: Mon May 03, 2010 12:38 am

Re: images color change in IE

Post by rnoack »

my guess is the CSS/style, but if you really want help you have to post the code.
User avatar
hypedupdawg
Forum Commoner
Posts: 74
Joined: Sat Apr 10, 2010 5:21 am

Re: images color change in IE

Post by hypedupdawg »

Yes - if you post the codes of any pages / CSS styles I can get to work! Just attach them with the "upload attachments" tab.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: images color change in IE

Post by pickle »

hypedupdawg wrote:Yes - if you post the codes of any pages / CSS styles I can get to work! Just attach them with the "upload attachments" tab.
Better to just post the code inline so we don't have to download anything.

Have you validated your markup & CSS?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
hypedupdawg
Forum Commoner
Posts: 74
Joined: Sat Apr 10, 2010 5:21 am

Re: images color change in IE

Post by hypedupdawg »

or that... however, if he has 2 or 3 files and no idea where the problem is, I'd prefer to run them on my own server... same difference I suppose :)

Anyway, what does the validation process do? Does it catch more than just the standard "unexpected $T_VARIABLE" that web browsers do? I haven't had much experience with them.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: images color change in IE

Post by pickle »

The "unexpected $T_VARIABLE" errors are not caught by the browser to indicate malformed HTML. They are caught by the PHP interpreter when parsing the PHP file.

Validation makes sure the HTML & CSS are properly formed. In some cases. If ~ivan_nn2 has forgotten to close a <span> or some other element, the validator will catch that. It's possible that might be what's causing the problem.

In any case, that's a good first step to, if nothing else, eliminate bad markup as a culprit.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
hypedupdawg
Forum Commoner
Posts: 74
Joined: Sat Apr 10, 2010 5:21 am

Re: images color change in IE

Post by hypedupdawg »

Gotcha - so basically they catch things that some browsers will work round (e.g. Firefox) but some will fail to cope with (e.g. IE). Sounds like a good thing to invesigate :?
Post Reply