0

I'm having trouble making my site work with a doctype - so far the only way I can get it to work is without one.

The test site is on rossrowley.com

The current Declaration is of course not valid at all. But if I change the doctype to anything else the small clouds disappear and I cant work out why. I'm assuming the javascript that Ive used for the effects is not to blame, could it be the sizing i'm using (100% etc)?

Any help massively appreciated!

EDIT: -- So My Issue now is why the small clouds (#clouds1) are not showing up on the site with the html5 doctype - what isn't valid about them or the positioning i've used for them!?

Thanks again in advance

1 Answers1

1

One probable cause for the problem is that on line 90, you have a <script> tag after the </body> endtag. That might give weird effects on any doctype. If you fix that, then the site might work fine on HTML5, which is what you get if you use a plain doctype:

<!DOCTYPE html>

EDIT: That script is the one you use to move the clouds, so yes, this is probably the cause. Not declaring doctype would put the browser into quirks mode and it may run the script even despite it's erroneous placement.

EDIT 2: Have you accidentally removed the <html> start tag, or was it always that way. Check if that might be some cause of trouble.

Nicklas Nygren
  • 2,595
  • 13
  • 19