Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IE6 and standards compliancy mode: It doesn't work!

0 views
Skip to first unread message

Matthew Hill

unread,
Aug 25, 2002, 11:19:26 AM8/25/02
to
I am going completely mad, please help!

I am building a site in pure standards compliancy mode, but no matter what
DTD I use, IE6 will not play ball.

I have this style, applied to a DIV:

.folio_picture
{
width:150px;
height:150px;
float:left;
border:1px solid #FE901D;
padding:2px;
}

...which should render as a 156 pixel square box. It does this correctly in
Opera 6, Netscape6,6.2,7 and Mozilla 1.1b. IE6 however, still is doing what
it did in v5 - creating a 150 pixel square box, which is clearly not
compliant. I've variously used these DTDs, to no avail:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">

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

I've even converted to XHTML and get the same problem,using this DTD:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Can someone please tell me how to get IE6 into standards compliant
mode--I've been trying to crack this for weeks!

Thanks in advance.

Matthew Hill.


Matthew Hill

unread,
Aug 25, 2002, 1:25:13 PM8/25/02
to
Not to worry - I found the problem and solution! I'm using Dreamweaver MX
templates, which add a line to the top of every page. IE6 ignores the DTD
declaration if it's not the first line of a document, hence my problem.

This is a pain in the arse, but at least I know what's causing it now.

Matthew.


"Matthew Hill" <removeme....@ntlworld.com> wrote in message
news:eI8ftqETCHA.4240@tkmsftngp08...

0 new messages