Get ready for BLACK FRIDAY shopping starting in

Forums

This topic is locked

DOCTYPE causes CSS to display incorrectly

Posted 15 Mar 2005 23:38:09
1
has voted
15 Mar 2005 23:38:09 Simon Howell posted:
Hi, I'm wondering if anyone else has come across this problem. With the default DOCTYPE left in the code, Dreamweaver doesn't display my CSS correctly in design view:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "www.w3.org/TR/html4/loose.dtd">

Here's a screen shot with the DOCTYPE retained:

<img src="www.esc-online.com/images/with_doctype.gif" border=0>

Here's a screen shot with the DOCTYPE removed:

<img src="www.esc-online.com/images/without_doctype.gif" border=0>

If anyone has experienced this and has a solution I would be glad to hear from you.

Simon

STUDIO MX 2004

Replies

Replied 16 Mar 2005 11:54:10
16 Mar 2005 11:54:10 Simon Martin replied:
Hi Simon
Are you using relative sizes for your font?
I'm wondering if the default browser CSS is coming in to effect here.
Also is it the same across different browsers?

Live the life you love
Love the life you live
~ ~ ~ ~ ~ ~ ~
<b>Simon Martin</b> - <i>DMXzone Manager</i>
<font size=1>[ Dreamweaver MX/MX2004 | ASP | SQL | XHTML/CSS | Web Accessibility ] </font id=size1>
Replied 17 Mar 2005 20:39:08
17 Mar 2005 20:39:08 Simon Howell replied:
Simon,

In this example I am using xx-small, x-small, small, medium etc. The problem is actually not with the browsers, but how Dreamweaver displays the styles in Design mode. I see only slight changes in the browser when I include / exclude the DOCTYPE.

On another note, (and I know I should probably post this elsewhere on the site) do you take subcontracted programming work? I am a graphic designer by training and struggle with ASP despite the fact that we use ASP extensively in our web applications.

Simon

STUDIO MX 2004

Reply to this topic