Results 1 to 11 of 11

Thread: VB World uses "sloppy" style sheets

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    VB World uses "sloppy" style sheets

    Quote from well respected UK based PC magazine
    Developers will notice that IE6 now provides full support for CSS (Cascading Style Sheets) Level 1. Yes, it has taken a long time, but finally Microsoft is doing things the 'standards' way. One of the consequences of this is that the browser is less tolerant of sloppy style sheets
    Maybe John you should check out any of your articles/tips pages using IE6...
    Last edited by chrisjk; Nov 15th, 2001 at 01:45 PM.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    Outrageous!

  4. #4
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    Looks like it would've been quicker to list all of the correct lines
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  5. #5
    Hyperactive Member Pix's Avatar
    Join Date
    Feb 2001
    Location
    I'm not telling you (or them)
    Posts
    282
    Indeed

  6. #6
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    yep

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    GRRRRRR!!

    Every page on www.vbworld.com still looks like it was written by a "<center> happy" kid under IE6

    That is not good.

  8. #8
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    I know, that bugged me too

    Like how on the code tips, all the code was dead in the middle :|

  9. #9
    Lively Member
    Join Date
    Jun 2001
    Location
    Banana Republic
    Posts
    115

    Lightbulb REMOVE THE URL IN THE DOCTYPE DECLARATION !!!!

    From MSDN

    The !DOCTYPE "Switch"
    This section describes how to use the !DOCTYPE declaration in your document to switch on standards-compliant mode with Internet Explorer 6 or later.

    You switch on standards-compliant mode by including the !DOCTYPE declaration at the top of your document, specifying a valid Label in the declaration, and in some cases, specifying the Definition and/or URL. The Label specifies the unique name of the DTD, and can be appended with the version number of the DTD. The Definition specifies the definition of the DTD that is specified in the Label. The URL specifies the location of the DTD.

    There are three Definitions specified in the HTML 4.0 specification—Frameset, Transitional, and Strict. Frameset is used for FRAMESET documents. Transitional contains everything except FRAMESET documents, and Strict, according to the HTML 4.0 specification, "...excludes the presentation attributes and elements the World Wide Web Consortium (W3C) expects to phase out as support for style sheets matures."

    The following table shows which values of the !DOCTYPE declaration switch on standards-compliant mode with Internet Explorer 6 or later.

    Label Definition URL present URL not present
    No !DOCTYPE present Off Off
    HTML (No Version Present) Off Off
    HTML 2.0 Off Off
    HTML 3.0 Off Off
    HTML 3.2 Off Off
    HTML 4.0 No Definition Present On On
    HTML 4.0 Frameset On Off
    HTML 4.0 Transitional On Off
    HTML 4.0 Strict On On
    XHTML On On
    XML On On
    Unrecognized !DOCTYPE On On

    The preceding table shows that standards-compliant mode is switched off when the !DOCTYPE declaration is not present in the document, when the Label in the declaration doesn't specify a version of the HTML specification, or when it specifies a version earlier than HTML 4.0. When you specify the Frameset or Transitional Definition of HTML 4.0 in your !DOCTYPE declaration, the table shows that standards-compliant mode is switched on only when you include the URL. Standards-compliant mode is also switched on when you specify the Strict Definition of HTML 4.0 in your !DOCTYPE declaration, and when you specify HTML 4.0 with no Definition.

    To allow for the creation of new DTDs, such as HiDad 11.22, standards-compliant mode is switched on when the !DOCTYPE declaration is not recognized. Standards-compliant mode is also switched on when you specify a version of HTML that is not listed in the table, such as HTML 1.0 or HTML 3.22.

    !DOCTYPE Examples
    The examples in this section show how to use the !DOCTYPE declaration to specify the DTD to which a document conforms and how to switch on standards-compliant mode.

    Both of the declarations in the following example specify conformance to the Transitional HTML4.0 DTD. The second declaration specifies the URL of the DTD. The first declaration does not. The second declaration switches on standards-compliant mode with Internet Explorer 6 or later. The first declaration does not.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    Both of the declarations in the following example specify conformance to the HTML 4.0 DTD. The first declaration does not specify a Definition. The second declaration specifies the Strict Definition of this DTD. Neither declaration specifies the URL. Both of these declarations switch on standards-compliant mode.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
    The gist of the above paragraphs..
    If you cannot immediately conform to standards...you have two options
    1.Don't use a DOCTYPE at all (or)
    2.Declare use of a transitional DTD, but don't include a URL.
    like this <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


    For the Skeptics :
    1.Save a copy of http://www.vbworld.com/index.html to your local disk.

    2. Either remove the doctype completely or remove the url from the Doctype and save.

    3. Open it in IE6 and See the difference.
    Marriage - is not a word, but a sentence.

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    by golly he's right!

    C'mon John!! All you've got to do is remove
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    from the top of the page then it displays perfectly in IE6. Who needs doctypes anyway?!

  11. #11
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Yeah, That looks sooo much better

Posting Permissions

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



Click Here to Expand Forum to Full Width