View Full Version : My site implodes when I add a doctype


Neeana
07-01-2006, 03:04 AM
http://neets.adorability.org

Whenever I add a doctype, my content and links move up in the top left hand corner, for no reason whatsoever. Then, when I take out the doctype, they magicaly go back where they belong... (I use PHP includes, by the way)

Any body have a clue as to what's happening? I sure don't. o.o

Douglas
07-01-2006, 03:49 AM
Browsers render content different ways for different doctypes, if there is no doctype present, it goes into Quirks Mode, which it will show the HTML the way it thinks it should be shown. You don't really need a doctype, but if you do you should redo it using the doctype the whole time.

Neeana
07-01-2006, 12:48 PM
Oh. Thanks ^^

pb&j
07-01-2006, 05:51 PM
to add, DOCTYPE will make your page follow that particular set of rules. it make you code to a more strict and correct way.

example, you should really add the measurement values to a piece like this...

<div style="position: absolute; left: 319px; top: 251px; width: 601px;">

without the measurement values, different browsers may use their own ideas on what the values should be.

Idiotic Creation
07-02-2006, 08:51 PM
Valadation will help with that im sure.

David