Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 25
  1. #1
    Member Nickhead's Avatar
    Join Date
    Jul 2003
    Location
    Pittsburgh, PA
    Posts
    81
    Member #
    2221
    When I insert this code...

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

    on the first line of my code it destroys my design.

    What did I do wrong?
    Nickhead
    musicpitt.net

  2.  

  3. #2
    Senior Member Eddy Bones's Avatar
    Join Date
    Jan 2004
    Location
    Washington, USA
    Posts
    1,054
    Member #
    4651
    You must have used improper markup. The Doctype defines how you are supposed to use the markup, so when you add that definition everything goes crazy.

  4. #3
    Senior Member Jack000's Avatar
    Join Date
    Aug 2004
    Posts
    250
    Member #
    7173
    if you're using ie, coding without the doctype puts the browser in "quirks mode". If this is the first time you have used a doctype, the most likely problem is the box model bug. With a doctype, the width property means "width without padding/border", but in quirks mode, it means "width including padding/border".

  5. #4
    Member Nickhead's Avatar
    Join Date
    Jul 2003
    Location
    Pittsburgh, PA
    Posts
    81
    Member #
    2221
    i see... so i should recode it with the new tag in place?
    Nickhead
    musicpitt.net

  6. #5
    Member Tristessa's Avatar
    Join Date
    Nov 2004
    Location
    Kingston, Ontario
    Posts
    94
    Member #
    8215
    I remove the doctype.
    I know some people will disagree ... but doctype ruins a lot of designs.

  7. #6
    Senior Member Jack000's Avatar
    Join Date
    Aug 2004
    Posts
    250
    Member #
    7173
    That's right, I disagree :]

    removing the doctype means you're designing exclusively for ie in quirks mode. Other browsers that don't have "quirks mode" will still see the ruined design.

  8. #7
    Member Tristessa's Avatar
    Join Date
    Nov 2004
    Location
    Kingston, Ontario
    Posts
    94
    Member #
    8215
    All my layouts look good in IE, FireFox, Netscape and Safari and I never have the doctype on them.

  9. #8
    Member Nickhead's Avatar
    Join Date
    Jul 2003
    Location
    Pittsburgh, PA
    Posts
    81
    Member #
    2221
    I read not having the doctype code hurts your search engine ranking?
    Nickhead
    musicpitt.net

  10. #9
    Senior Member Jack000's Avatar
    Join Date
    Aug 2004
    Posts
    250
    Member #
    7173
    I believe the main difference between standard and quirks mode is padding/border

    if you never use those css styles in combination with a fixed width or height, the page will (for the most part) render correctly. Keep in mind that quirks mode is only implemented in ie6 to render pages built for 4~5th generation browsers. Which means ie 5 will render the pages incorrectly even with a doctype. Regarding search engine rankings, I haven't heard of anything like that.

  11. #10
    Member Tristessa's Avatar
    Join Date
    Nov 2004
    Location
    Kingston, Ontario
    Posts
    94
    Member #
    8215
    Doctype doesn't effect the ranking of a website on a search engine and I can say this through experience.


Page 1 of 3 1 2 3 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:42 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com