SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does Doctype affect CSS?

    I was wondering, does declaring a DOC TYPE effect the outcome of CSS? Is there a Difference with the way html 4.01 renders CSS vs. XHTML 1.0?
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  2. #2
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not that I am aware of, I believe all the DOCTYPE does is specifies a set of rules that the browser can use to check your page... But am not sure, never seen anywhere mention anything about CSS and DOCTYPE being related in anyway, shape or form though
    Jordan Windebank

  3. #3
    SitePoint Member XiXora's Avatar
    Join Date
    May 2002
    Location
    Birmingham, UK
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the doc type in ie6 i know will change the box models that it uses... with it left out it'll use IE5 way with it in it'll use the W3 way

  4. #4
    (****** or Deleted)
    Join Date
    May 2002
    Location
    Melbourne, Australia
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, I have never noticed that, thanks for the info XiXora.
    Jordan Windebank

  5. #5
    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)
    Theoretically not really, in practice yes it does and that is another reason why I dislike Micro$oft, even IE 6.0 can freak out if you add:

    <?xml version="1.0" encoding="utf-8" ?>

    Thus nulling some of the bug fixes from version 5.5 to 6.0.

  6. #6
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    UK
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well if you had coloured scrollbars through IE's native CSS, it would be ignored if you had something like a xhtml strict doctype, since IE is conforming to that standard, allegedly, in which their propriety CSS won't work.


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
  •