SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    You want what? By when?? Milamber's Avatar
    Join Date
    Jan 2001
    Location
    California
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry <!DOCTYPE> tag breaking CSS rendering??

    I have a page here:

    http://63.247.86.169/all.html

    that in IE looks ok. (aside from the centering bug in IE css.) but in mozilla firebird v7 (gecko engine) the page totally dies. As in, the style sheet is only half applied. It's incredibly frustrating.

    I tracked it down to this:

    Code:
     <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    If i take that line out, it works fine in firebird, and if i leave it in, it's FUBAR.
    But I shouldn't take it out because then it isn't valid XHTML code.

    This is driving me nuts! I just can't figure it out at all. Any help? Thanks!
    -Jeff Minard | jrm.cc - Battlefield 2 Stats

  2. #2
    Ensure you finish what you sta bronze trophy John Colby's Avatar
    Join Date
    Aug 2003
    Location
    University of Central England, U.K.
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Works fine for me in Firebird 0.7 on Windows. Which platform are you using?
    John
    No electrons were harmed during the creation, transmission
    or reading of this posting. However, many were excited and
    some may have enjoyed the experience.

  3. #3
    You want what? By when?? Milamber's Avatar
    Join Date
    Jan 2001
    Location
    California
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you just tried it, i took out the doc type tag so that it works right.

    For example then, check out these:

    http://63.247.86.169/

    http://63.247.86.169/phooy.html

    Also, try the "elaborate" css scheme on both those pages and see what happens....that one gets really messed up.

    Same document, little doctype change. It's going bonkers for me. ( and the about string for my version of firebird is "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 Firebird/0.7")
    -Jeff Minard | jrm.cc - Battlefield 2 Stats

  4. #4
    SitePoint Guru bronze trophy blufive's Avatar
    Join Date
    Mar 2002
    Location
    Manchester, UK
    Posts
    853
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The doctype is flicking mozilla/firebird into standards compliant rendering mode - without it, it's using "quirks" mode. (see http://www.mozilla.org/docs/web-developer/quirks/)

    From simple_style.css (my comments added, lots of code trimmed):
    Code:
    #pageBody {
        width: 650;    <-- 650 what?
      }
      .journal .h {
        padding: 20 0 0 0px;  <-- 20 what?
     }
    Elaborate_style has loads of these. With the value 0 (zero) you can get away without a unit, since zero pixels is the same as zero points, zero inches or even zero miles (though I doubt there's a browser anywhere that will accept that unit)

    In standards compliant mode, mozilla is being really strict, and ignoring style rules with bad syntax - such as lengths with no unit specified.

    Get those units fixed, and then let's see what it looks like...

  5. #5
    You want what? By when?? Milamber's Avatar
    Join Date
    Jan 2001
    Location
    California
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you!

    That makes great sense. I guess that's just not entirely clear.

    Muchas gracias senor!
    -Jeff Minard | jrm.cc - Battlefield 2 Stats


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
  •