Can you also post a duplicate copy of the page with the doctype declared for us to compare?
The presence or absence of a doctype will only affect two things:
1. How the page is validated by the validator, i.e., which standard it's validated against
2. How the page is rendered by the browser, quirks mode or standards mode
A missing doctype could not affect whether the page is displayed at all. For example, when I look at your page in IE8 and view source, I can see that the code for the page is all there. Could you put this page up in a non-protected location so we can debug the live version?
Hi Murray, just wondering whether you've had a chance to look at this?
1 person found this helpful
Add a valid XHTML transitional document type and validate your code.
The main problem I see has to do with reusing the img ID "rht_thm"
IDs can be used only 1 time per page. Class names, however, can be re-used as many times as needed.
Some browsers are less tolerant of code errors. So working with valid code (even in test pages) is worth the effort.
Thanks, and I've saved the validator link which will be very useful to me.
However, I've not been able to solve the problem. I've put in the transitional doc type and I've changed the multiple ids to classes as you suggest (I am aware that an id should only be used once per page but have been ignoring it as it always seems to work with more than one - I will stop doing this immediately), and I've validated the code using the validator site, but it still doesn't work. The only browser which seems able to render it correctly is Safari.
Its odd, because the basic gallery is fine - the code seems to fall apart as soon as I try to put it onto my (templated) page - which I really need to do to make it consistent with the rest of the site.
The page link is: http://www.empathydesign.co.uk/development/galleries_doctype.html