470,563 Members | 2,045 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,563 developers. It's quick & easy.

Rookie Mistake - Should I fix it?

Okay, don't laugh.

My website is 99% done, and I took painstaking steps to make it look the same in IE and Firefox. Aside from some spacing issues when using the <p> tag (Firefox skips more vertical space somehow) - it all looks good.

However... I just read somewhere that the DOCTYPE for my site should be brought to the standard 4.01. Right now, my entire website - every page - has a doctype of 1.0 Yikes.

I changed the main page from 1.0 to 4.01 and in IE it looks the same. In Firefox, I have all kinds of spacial problems around images and paragraph tags. This would be a nightmare to fix throughout my entire site. So two quick questions:

1) What are the ramifications (God I love that word...) of leaving the doctype 1.0?

2) Almost every page in my site is based on a template. Is there something I could put in the template (<head> section?) to fix the spacial issues caused by going from 1.0 to 4.01?

Okay, I'm done. You can laugh now.
Jan 11 '08 #1
4 949
7,435 Expert 4TB
Using that doctype puts IE into quirks mode and it won't attempt to act like a modern browser, such as Firefox. The only thing to do is fix the doctype and get hacking, but use Firefox as your reference, never IE.
Jan 11 '08 #2
Grrrr......... God I hate IE.

People still using IE are akin to people who used to still use AOL because they thought it was 'the internet'.

Remember those people?
Jan 11 '08 #3
7,435 Expert 4TB
otoh, if spaces are most of your problem, you could try setting all margins to zero and adjust them individually. Try adding *{margin:0;padding:0} to your css and go from there.
Jan 11 '08 #4
428 256MB
Relax- nobody ever gets it right the first time.

Now, fix it.
Jan 11 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by William S. Perrin | last post: by
3 posts views Thread by Dimitris \(GIS\) | last post: by
3 posts views Thread by Dst | last post: by
21 posts views Thread by AsheeG87 | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.