Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: CSS Problems between IE/Netscape/FireFox etc

  1. #1

    CSS Problems between IE/Netscape/FireFox etc

    Hi all,

    Why is it that there are differences between the browsers on CSS?

    I have the following in my CSS file:

    .0 {
    background-color: #F5E6E7;
    border: 1px solid #cccccc;
    }
    .1 {
    background-color: #FFFFFF;
    border: 1px solid CCCCCC;
    }

    I then did
    Code:
    <table class="0">
    and expected a table with a grey background and light grey border- but although it shows it on IE, it doesnt show it on other browsers such as firefox. Wht is this? What am I doing wrong?

  2. #2
    Junior Member
    Join Date
    Aug 2004
    Posts
    24
    not entirely certain, but I am going to assume that firefox/netscape dislike the numerics for your class names.

    similarly do not include underscores in your class names, and be certain to pay attention to your declarations as i know ie on macintosh is casesensitive toward class names (ie. class="mainText" is different than class="maintext"

  3. #3
    Senior Member
    Join Date
    Apr 2004
    Posts
    446
    Class names should start with a letter. After that, to be safe, you should restrict yourself to letters, hyphens, and numbers.

    http://www.allmyfaqs.com/faq.pl?Class_names

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    72

    Re: CSS Problems between IE/Netscape/FireFox etc

    Quote Originally Posted by baritoneuk
    Hi all,

    Why is it that there are differences between the browsers on CSS?

    I have the following in my CSS file:

    .0 {
    background-color: #F5E6E7;
    border: 1px solid #cccccc;
    }
    .1 {
    background-color: #FFFFFF;
    border: 1px solid CCCCCC;
    }

    I then did
    Code:
    <table class="0">
    and expected a table with a grey background and light grey border- but although it shows it on IE, it doesnt show it on other browsers such as firefox. Wht is this? What am I doing wrong?
    Have a look around on http://www.w3schools.com
    FireFox and [latest versions of] Netscape, render css according to W3C's "Web Standards" IE does not, and probably won't for another 2 years. MS will update IE when Longhorn releases, which sucks the big one.

    But anyway, get your CSS vaild at w3c.org, then you'll note it probably won't work on IE :) but there are many hacks to make it work on all browsers, even Opera. But try to use W3C's web standards, and you'll have less trouble in there future.

Similar Threads

  1. Problems with css in Firefox
    By simmo in forum Graphics & Design Discussion Forum
    Replies: 10
    Last Post: 02-19-2009, 05:53 PM
  2. 'No tables' layout problems with Opera and Netscape
    By Tim in forum Graphics & Design Discussion Forum
    Replies: 9
    Last Post: 02-22-2006, 11:41 AM
  3. Netscape update fixes Firefox bugs
    By WPW_Feedbot in forum IT Discussion Forum
    Replies: 0
    Last Post: 10-20-2005, 01:31 PM
  4. CSS and Netscape/Mozilla/Firefox
    By ackerley1 in forum Submit Your Site For Review
    Replies: 1
    Last Post: 01-12-2005, 08:09 PM
  5. Netscape 7.2 due in 2005 and based on Firefox!
    By carbonize in forum Internet Industry
    Replies: 4
    Last Post: 12-05-2004, 02:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •