Click to See Complete Forum and Search --> : Validation breaks page


st33d
01-23-2007, 10:29 AM
I decided to make my page XHTML transitional, but adding any docutype declaration whatsoever breaks the page.

http://www.robotacid.com/wtf.php

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.robotacid.com%2Fwtf.php&charset=%28detect+automatically%29&doctype=XHTML+1.0+Transitional

The valid version has a red 'X' box at the bottom that is supposed to be hidden by the surrounding div, why isn't it?

And if you scroll down the text box on the Flash and click 'Java applet detected...' it should mount a Java applet on page. In the validated version this is broken too.

here is the current - non valid - page I have up that works across many browsers.

http://www.robotacid.com/portfolio.php

What the hell is going on?

st33d
01-23-2007, 12:41 PM
Ah, wait. I discovered my CSS had a tiny typo.

The docutype declaration uncovered the bug, hence the trouble.

Now I've got a consistent output on all browsers, hooray!

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.robotacid.com%2Fportfolio.php&charset=%28detect+automatically%29&doctype=XHTML+1.0+Transitional