|
Posted by WD10 on 10/12/22 11:25
On Wed, 31 Aug 2005 11:29:35 -0700, Saggy wrote:
> I have designed a webpage that starts with <html> and looks OK....
> however I think I want to put a DOCTYPE tag in front of it (a spider
> simulator told me to).... and when the DOCTYPE tag includes the
> following ..
>
> "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"
>
> my website is messed up, in particular, a table I positioned using
>
> style="position:absolute; left: 10; top:65"
>
> now is not positioned correctly. What is going on? Do I need that
> line in the DOCTYPE tag, if so, how to get the table in the right
> place??????
Are you using Internet Explorer? If you use something like
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
it switches on "standards compliant mode".
If you just use something like
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
you will be in "quirks mode".
A list of DOCTYPES is here:
http://www.w3.org/QA/2002/04/valid-dtd-list.html
This page is about XHTML, but explains standards compliant and quirks
modes:
http://www.w3.org/International/articles/serving-xhtml/#quirks
[Back to original message]
|