SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Addict goma's Avatar
    Join Date
    Jan 2002
    Location
    smelly armpit of Asia
    Posts
    305
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    any quirks with CSS in XHTML?

    Are there any known bugs or quirks that show up when you use XHTML doctype with CSS?

  2. #2
    SitePoint Wizard iTec's Avatar
    Join Date
    May 2001
    Location
    Sydney, Australia
    Posts
    2,243
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It depends on the browser, IE5 has quite a few, 6 has less but still some stupid IE flips, NS6 is pretty good as is opera, but they still arent bug free

    Thse are all more to do with css in general tho, XHTML is so bare boned that there isnt really anything for the browsers to stuff up in it.

  3. #3
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A technique recently referred to at SPF for centering a div (H & V) in a window worked fine in a XHTML-coded page.

    However, if the DTD headers (S & T) were present, then the technique ceased to function correctly.

    The technique was a workaround, though the syntax was still perfectly correct (W3C).

    In my (limited) experience, I have discovered that the XHTML DTD headers can have fatal consequences upon some otherwise perfectly correct CSS and javascripts.

    On pages where it becomes an issue, I just leave out the DTD altogether.
    Last edited by Bill Posters; May 1, 2002 at 00:39.
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature

  4. #4
    Robert Wellock silver trophybronze trophy xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,316
    Mentioned
    60 Post(s)
    Tagged
    0 Thread(s)
    The only quirk I can think of when applying CSS to XHTML 1.0 except for Microsoftís incompliance with the W3C CSS in general and its strange proprietary scrollbars, etc. Has already been covered in "Tables, Images, and Mysterious Gaps" by the Mozilla Project overall though itís the browsers that arenít fully up to scratch.

    Yes, DHTML layout is the thing that will get affected most by XHTML DTD.

    };-) http://www.xhtmlcoder.com/
    Last edited by xhtmlcoder; May 1, 2002 at 04:52.


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
  •