On 6/17/10 10:26 AM, [email protected] wrote:
> Hi.  Dreamweaver automatically places the following line at the top
> of  the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> Is it
> necessary?  It throws off the appearance of my pages.  When  I
> remove it, things look as they should.

In which browsers? While most adhere to standards when a DOCTYPE is
missing or invalid, Internet Explorer (all versions) behave in a very
non-standard way, making it very difficult to make designs work in both
IE and the rest.

About the only *major* difference between standards mode and so-called
"quirks mode" (without a DOCTYPE) for most browsers is that width and
height of boxes measure outside the borders in "quirks," while in
standards mode they measure content only (excluding padding and
borders.) CSS is totally borked in IE when you omit the DOCTYPE.

For details, please see
<http://www.gunlaug.no/contents/wd_additions_34.html>

Cordially,
David
--

______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to