Forum Moderators: mack

Message Too Old, No Replies

CSS Doctype in NS 6

Doctype not 'invisible'?

         

DiAMOndDavE

1:39 am on Oct 24, 2002 (gmt 0)

10+ Year Member



Folks,

I thought that when you added a DOCTYPE to the top of your web page it was 'invisible' to browsers - like a comment is. In Netscape 6.0 my page is breaking up and I have discovered it is the Doctype causing this. The top of my page is a table containing graphics and the TD cells are being forced apart. Surely this should not be happening?

Regards
DiAMOndDavE

jdMorgan

2:04 am on Oct 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



DiAMOndDavE,

I test with NS6, and I'm not seeing any problem. Here's the first 4 lines from a typical page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

Maybe a comparison of content and placement to what you are using will be helpful.

Jim

DiAMOndDavE

3:40 am on Oct 24, 2002 (gmt 0)

10+ Year Member



jdMorgan,
Thanks for the reply. I am using a similar code to yours along these lines:

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

I must be doing something wrong because it works fine in IE. I'd like to post the page but it's not online yet. If anyone has any further ideas let me know.

Thanks
DiAMOndDavE

bobriggs

4:36 am on Oct 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Sounds like a quirks mode problem to me, without being able to see your site.

See here:

[mozilla.org...]

What happens with jdMorgan's DOCTYPE?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Of course, you could have another error causing the problem. Does the page validate on w3c?

g1smd

7:27 pm on Oct 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Also, can I suggest to try changing the 4.0 to be 4.01, just in case...