Herbie 0 Posted November 10, 2006 Report Share Posted November 10, 2006 Why does my page look just fine here:www.sweeneyauction.net/valid/nodoctype.htmBut when I add a doctype the "main" class gets distorted:www.sweeneyauction.net/valid/doctype.htmThe pages are exactly the same except that the second has<!DOCTYPE html PUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">at the top. Quote Link to post Share on other sites
Jonas 151 Posted November 10, 2006 Report Share Posted November 10, 2006 Cause adding a doctype tells the browser in a way how to process and display things, instead of interpreting it on its own. Quote Link to post Share on other sites
Herbie 0 Posted November 10, 2006 Author Report Share Posted November 10, 2006 Then how can I validate my XHTML w/o screwing up my CSS? If i don't have the doctype my xhtml wont validate Quote Link to post Share on other sites
BiteMe 0 Posted November 10, 2006 Report Share Posted November 10, 2006 Then how can I validate my XHTML w/o screwing up my CSS? If i don't have the doctype my xhtml wont validateWithout a doctype you ARE screwing up the css, in effect, use the doctype and adjust your css is the right way, and the laaaaaaaw of the west. Quote Link to post Share on other sites
jlhaslip 1 Posted November 11, 2006 Report Share Posted November 11, 2006 Cross-Posting in two sub-forums should be avoided.http://w3schools.invisionzone.com/index.ph...ost&p=46281Have you attempted to resolve your difficulties using the suggestions offered there?It works. I have a copy on my machine. PM me for a link. Quote Link to post Share on other sites
Herbie 0 Posted November 11, 2006 Author Report Share Posted November 11, 2006 Cross-Posting in two sub-forums should be avoided.http://w3schools.invisionzone.com/index.ph...ost&p=46281Have you attempted to resolve your difficulties using the suggestions offered there?It works. I have a copy on my machine. PM me for a link.Unfortunatly the answers I was getting in this post were lacking, so I went to the other forum. I am currently trying out the suggestions given in that post. Thanks! Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.