What is a DOCTYPE and why is it screwing me up?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Viken Karaguesian (vikenk_at_NOSPAMcomcast.net)
Date: 03/07/05


Date: Sun, 6 Mar 2005 21:38:56 -0500

Hello all,

I recently downloaded a javascript to use in my website. The javascript
required a DOCTYPE statement be placed before the HTML tag.

The problem is: when I insert the DOCTYPE tag my page doesn't look right.
The page itsself seems to widen and a horizontal scrollbar is always
present. Even if I remove everything from my page, the horizontal and
vertical scrollbars are always there. This only seemed to be a problem in
Internet Explorer.

So, to make a long story short, I started rebuilding a new page and checked
each step in the browser one by one until I found the problem: Any time I
set my line spacing to 1-1/2 lines or double-spaced, the scroll bars
appeared.

Now that you have a brief history, I have some questions :>)

1. What exactly is a Doctype? Transitional vs Non-transitional, etc...

2. What's the problem with lines that are double-spaced or 1-1/2 line
spaced?

3. How can I get around that?

Thanks in advance for any replies.

Viken K.



Relevant Pages

  • Re: What is a DOCTYPE and why is it screwing me up?
    ... | I recently downloaded a javascript to use in my website. ... | required a DOCTYPE statement be placed before the HTML tag. ... | The page itsself seems to widen and a horizontal scrollbar is always ...
    (microsoft.public.frontpage.client)
  • Re: dynamic nav/drop-down...
    ... No Doctype! ... corporate firewall will have no navigation. ... I still dont get why some users disable JavaScript (some corporate firewalls disable JavaScript?? ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: What is a DOCTYPE and why is it screwing me up?
    ... Aside from lots of reading starting with the referred articles and using ... nutshell the DocType is a URI that points to Document Type Definition" -- ... HTML is a subset of SGML. ... > The page itsself seems to widen and a horizontal scrollbar is always ...
    (microsoft.public.frontpage.client)
  • Re: How Important is it that a Site is HTML Compliant to W3 Standards?
    ... It seems a shame to work towards creating well structured ... So use a Transitional Doctype, or JavaScript. ... a ridiculous suggestion. ...
    (uk.net.web.authoring)
  • RE: [PHP] DOCTYPE, javascript and Firefox
    ... [PHP] DOCTYPE, javascript and Firefox ...
    (php.general)