border color...firefox and ie

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

border color...firefox and ie

Post by pleigh »

i would like to know why it is happening....in my editor, i indicated the color or my table's border to be something like #336699....when viewed in ie, it appears right, but when i view it in firefox, the border has no color....is there a way i can make my bordercolor to appear correctly in both firefox and ie?

thanks...
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

the other day i applied a 1px solid border to an image, showed perfectly in IE but the border was "floating away" from the image in firefox, i thought it was really strange and could make no sense of it.

Im guessing its because the images were placed on a DIV placeholder (the layout is totally CSS and resolution independant meaning everything scales to the users resolution automatically) and where therefore getting affected somehow by its parent.

Still i could see no reason why firefox was doing this.
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

yes, i got your point, and i have the same question with regards to firefox....but this one is really confusing me, why is it that other website displays border color correctly, and i can't...there something about it, i know there's a solution to it, i just can't get it....so if any idea out there, feel free to reply...

thanks again...
User avatar
andre_c
Forum Contributor
Posts: 412
Joined: Sun Feb 29, 2004 6:49 pm
Location: Salt Lake City, Utah

Post by andre_c »

show some code and a test page if possible :D
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

I had this problem, but fixed it by including the # sign. Don't know if you have that or not. But firefox won't show any colors without a # in front.
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

yes, i have a # sign before the color code....i checked all of the colors i've used but everything is not showing the right color....
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

code please.
User avatar
pleigh
Forum Contributor
Posts: 445
Joined: Wed Jan 19, 2005 4:26 am

Post by pleigh »

this is my sample code

Code: Select all

<table width=&quote;100%&quote; border=&quote;1&quote; bordercolor=&quote;#336699&quote; cellspacing=&quote;0&quote; cellpadding=&quote;0&quote;>
          <tr>
            <td>some text<p>sometext</p><p>sometext</p><p>sometext</p><p>sometext</p><p>sometext</p></td>
          </tr>
        </table>
SBro
Forum Commoner
Posts: 98
Joined: Tue Sep 30, 2003 10:06 pm

Post by SBro »

Shows up fine in firefox for me, it shows a different style of border in firefox and IE but the colours remain the same.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

You know, you better be using 1.0.4. Not that it would affect your problem or anything, but they just patched a serious security vulnerability and you really should update.

Aside, IE is horrendous when keeping compatible across versions, but Firefox shouldn't have that problem. Why don't you try using CSS and border-collapse?

Code: Select all

&lt;table style=&quote;border:1px solid #369; border-collapse:collapse; width:100%&quote; cellspacing=&quote;0&quote; cellpadding=&quote;0&quote;&gt;
&lt;tr&gt;
&lt;td&gt;Stuff&lt;/td&gt;
&lt;td&gt;More Stuff&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
Post Reply