PDA

View Full Version : Weird colors with IE, but looks fine with Firefox


tuinkle
28-07-2004, 03:45 PM
Hello,

I was wondering if anybody knew why some colors(eg. #87ceeb) would appear differently in IE, but display correctly in Firefox? And how do I fix that?

Thanks!!

luke
28-07-2004, 05:09 PM
what do you mean by "appear differently in IE"? is it like the same color code give different colors when used in different HTML elements or what? I did some experiments and I don't think that's the case .. the color #87ceeb looks the same in any element in my IE .. care to clarify your question?

tuinkle
29-07-2004, 05:18 AM
Thanks for the response, Luke.

I have several tables and I had colored them in several colors (one of them being #87ceeb). I chose the colors based off of w3 so I have an impression of how the colors should look like. However, the colors don't turn out right in IE, but Firefox gives me the expected colors.
Did I explain the situation ok?
Also, the tables looks scewed in IE (not the right shape/dimensions).

By the way, I did not use CSS, and I'm using iframes.

I don't think it has to do with the IE on my machine because I've viewed it on other machines as well.

:(

__earth
29-07-2004, 05:37 AM
I don't know but I tried it with IE and Firefox and there is no problem. Both browsers give the same color.

Might be a syntax problem with your code?

It would help us to help you if you present us the code.

tuinkle
29-07-2004, 07:05 AM
Here's part of the code:

<pre>
<body text="black" bgcolor="white" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<font size="-2">
<table cellpadding=2 cellspacing=0 border=0 width="100%">
<tr bgcolor="#D3D3D3 ">
<td width ="800">
<font face=Arial>
User's Perspective
</font>

</td>
<td align=left> </td>
</tr>
</table>
</font>

<table cellpadding=2 cellspacing=0 border=0 width="100%">
<form name = "ddmenu" method=post action="">
<tr bgcolor="#D3D3D3 "> <font size ="-3">


<TR valign="top">
<TD align ="right" bgcolor="#ffefd5" valign="middle">
User Type:
</TD>
...
</pre>

Thanks in advance!

luke
29-07-2004, 09:05 AM
You know what's the problem?
<tr bgcolor="#D3D3D3 ">
there's an extra space before the closing doublequote, and that makes IE weirdly decide to display color #D33D00 instead .. just remove the extra space and IE will show the correct color ... in other words, Mozilla is smarter than IE ... or perhaps IE is color blind :P

tuinkle
29-07-2004, 11:19 AM
THANKS A LOT A LOT, LUKE!!!
It worked like a charm and I don't have eyesores anymore on IE!

I guess I was sloppy in ctrl+c and ctrl+v :(
But boy, IE sure is picky!

Cheers!