Results 1 to 3 of 3

Thread: Overriding Problem?? - Defies the CSS Laws

  1. #1
    Join Date
    May 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Overriding Problem?? - Defies the CSS Laws

    Hi guys,

    In my style sheet I have:

    #container {display: table-cell}
    #container {display: inline-table}

    It literally looks like the above, so that one is below the other. The rules of CSS would say that all browsers should therefore display inline-table as that should override the one above.

    But it doesn't...well at least not in Firefox! I needed the two rules to apply to two different browsers, table-cell for Firefox and inline-table for Safari. To my amazement that's exactly what happens! While I'm happy about this, I don't understand it.

    I've defied the laws of CSS. Can anyone explain how or why this happens?

    Thanks!
    Matt

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    I am not sure about the table properties in browsers, but if a browser doesnt support the property/value of some selector then it will be ignored. maybe that is what is happening here?

  3. #3
    Join Date
    May 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi boogyman,

    I thought that too...was my first logical thought.

    So I took off the one that Firefox needed and just left the one on it was ignoring (the latter one which it should have picked up).

    This made everything go wrong in Firefox, so that threw out that idea

    Matt

Bookmarks

Posting Permissions

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