Leaving it out altogether works for all browsers except IE8 and Opera. Strangely, the gallery on its own is fine in these two, but as soon as I build the rest of the page around it, it falls apart.
Adding a doc type wrecks the display in all browsers, which seems really strange.
Bridge generates the page automatically, with this code at the top of the document (no doc type at all): <html xml:lang="en" lang="en">
I normally use:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
Please see http://www.kippamatthews.co.uk/galleries.html, usr - kippa, pw - kippacouk99!
(note pg only partly built)
Thanks
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?
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.
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb
Hi Nancy
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
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.
This may be because the image gallery uses an xml list to link to the images, this means that if you use this in a template then it may not work as it cannot find the images.
PZ
Hi
Have you followed, (or looked at) this tutorial - http://foundationphp.com/tutorials/gallery/embed1.php?
PZ
North America
Europe, Middle East and Africa
Asia Pacific