Skip navigation
Currently Being Moderated

Doc type problem?

Feb 17, 2011 3:19 AM

Hi, I have an image gallery generated by Adobe Bridge (uses a flash viewer),  and can't get it to display in all browsers.  I suspect that this is to do with  the doc type.

 

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

 
Replies
  • Currently Being Moderated
    Feb 17, 2011 4:28 AM   in reply to Streetwitch

    Can you also post a duplicate copy of the page with the doctype declared for us to compare?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 17, 2011 4:55 AM   in reply to Streetwitch

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 27, 2011 12:26 PM   in reply to Streetwitch

    Add a valid XHTML transitional document type and validate your code.

    http://validator.w3.org/

     

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 28, 2011 6:16 AM   in reply to Streetwitch

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 28, 2011 10:13 AM   in reply to Streetwitch

    Hi

     

    Have you followed, (or looked at) this tutorial - http://foundationphp.com/tutorials/gallery/embed1.php?

     

    PZ

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points