Welcome to WebmasterWorld Guest from 18.104.22.168
Forum Moderators: incrediBILL
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">
When I do this, it seems to have no visual effect in IE6, however when viewed in mozilla based browsers, (i tested in firefox), it completely looked like crap, its almost like it was defaulting the cellspacing to 5 or 6 pixels. I also tried different HTML versions with no luck.
I will post the urls to the page with it and the page with out it so you can see what I'm talking about, but I need to know if thats allowed here before I do...
Anyone know what i need to do?
We used the transitional tag, which looked like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
We never had any problems with it, and the page is valid.
Hope this is of some help.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
Using the "short" version puts IE6 (and some other browsers) into quirks-mode where they simulate old browser bugs (like the broken box model from IE5.*)
Always use a FULL doctype to ensure your document is rendered in 'standards compliant' mode.
<?xml version="1.0" encoding="windows-1250"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
the page is perfectly runs with IE ,but with Netscape its fall apart, what cause this problem?
What falls apart?
The <?xml> declaration is probably not advisable. It is not required by the recommendations and it forces IE into quirks mode. If you design in IE using CSS and then look in another browser, things may indeed go all crazy.
BTW, I assume you mean Netscape 7.x and not 4.x. If the latter, then IE is running in quirks and NS is running is extreme quirks mode.
its almost like it was defaulting the cellspacing to 5 or 6 pixels. I also tried different HTML versions with no luck.
Keep in mind, there is no standard for spacing (padding and margins). Each user agent is free to interpret as it wishes. Have you tried specifically setting border, margins, padding with CSS for all elements involved?
One thing that can help sort things out is to apply background colors so you can see who's really upsetting things.
When you creating a website, it can be a good thing to check itīs performance in both IE, NN and Opera allready from the very beginng. When a problem appears, you can fix it immidiately and understand whatīs going on, instead of building up a huge amount of small problems you canīt survey.