Forum Moderators: mack

Message Too Old, No Replies

Coding problems with Firefox

Looking for code equivalents

         

summerset

4:14 am on Apr 29, 2005 (gmt 0)

10+ Year Member



Hi I am a new member.

I have already designed my own website and I'm currently doing one for a friend. As I'm having a few problems with the colors showing correctly in Firefox I was wondering if
there is anywhere I can find relevant information, including coding, about website design and Firefox. I have searched the Mozilla site and couldn't find what I was looking for.

encyclo

4:59 pm on Apr 29, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld [webmasterworld.com], summerset.

Firefox is stricter than Internet Explorer when it comes to standards, and coding errors which will break your layout in Firefox might work in IE.

What kind of problem are you having with your colors? One thing that IE accepts that Firefox sometimes doesn't is colors specified without the leading "#" symbol. For example, red would be

#FF0000
and not just
FF0000
.

You should run your pages through the HTML validator [validator.w3.org] and CSS validator [jigsaw.w3.org] to try to identify coding errors.

summerset

7:07 am on May 1, 2005 (gmt 0)

10+ Year Member



Thanks for the reply.
I altered the color codes and removed the # symbol, but it still did not show the correct colors in Mozilla Firefox.

These are the codes :

<table CELLSPACING="1" cellpadding="5" border="4" bgcolor="FFFFFF"
bordercolor="00FF99" bordercolorlight="00CC99" bordercolordark="00CC99" align="center">

Is there anywhere I can find "easy to understand" code requirements for Firefox? Things like what you can do and what you can't.

I also ran the page through html validator, but it really didn't give me any answers (just a lot more coding errors :-( to fix)

Thanks again

ketel

8:24 am on May 1, 2005 (gmt 0)

10+ Year Member



The ( bordercolorlight="00CC99" bordercolordark="00CC99")
are for explorer only and won't work in any other browser if i'm not mistaken.

And what encyclo meant was that you have to put the # before the colorcode like "#00CC99" and not "00CC99".

D_Blackwell

12:20 am on May 2, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Even Microsoft doesn't recommend using this property anymore. (It looks like it was only for script use anyway.)
[msdn.microsoft.com...]

Keep using the validator. Gradually cleaning up your code to a higher standard will pay dividends. Don't worry about fixng everything all at once. Many of the errors are probably just the same ones repeated many times. As you understand why each one occurs, there will be fewer and fewer errors. The validator will help guide your coding. It may not validate, yet work great. It may also validate perfectly, and for many reasons not work very well:))

summerset

6:28 am on May 2, 2005 (gmt 0)

10+ Year Member



Thanks all for your assistance.

I would not have worried about the Firefox problems except that my friend (and now client) uses Firefox so naturally I had to make sure the website works okay on that browser.

I'll keep plugging away, using a validator to check the site.