Image of grog
Greg's broken photos
Greg's diary
Photo index
Greg's home page
Network link stats
Greg's other links
Copyright information
Groogle

This page illustrates a problem I had on 18 June 2013. The following images are all the same. When displayed at size 3 (width of screen), the first two display correctly, but the third is much smaller:


Saturday, 16 April 2011 Today's diary Today's images top next last

https://lemis.nyc3.digitaloceanspaces.com/grog/Photos/20110410/big/verandah.jpeg
Image title: verandah          Dimensions:          9156 x 2382, 4544 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 10 April 2011, thumbnails          All images taken on Sunday, 10 April 2011, small
Diary entry for Sunday, 10 April 2011 Complete exposure details

 


https://lemis.nyc3.digitaloceanspaces.com/grog/Photos/20110410/big/verandah.jpeg
Image title: verandah          Dimensions:          9156 x 2382, 4544 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 10 April 2011, thumbnails          All images taken on Sunday, 10 April 2011, small
Diary entry for Sunday, 10 April 2011 Complete exposure details

 


https://lemis.nyc3.digitaloceanspaces.com/grog/Photos/20110410/big/verandah.jpeg

Image title: verandah          Dimensions:          9156 x 2382, 4544 kB
Make a single page with this image Hide this image
Make this image a thumbnail Make thumbnails of all images on this page
Make this image small again Display small version of all images on this page
All images taken on Sunday, 10 April 2011, thumbnails          All images taken on Sunday, 10 April 2011, small
Diary entry for Sunday, 10 April 2011 Complete exposure details

 

I spent a lot of time investigating the cause of the problem. Here's the markup for the images above:

      <?php showphoto ("Photos/20110410/verandah.jpeg"); ?>
      <p>
      </p>
      <?php showphoto ("Photos/20110410/verandah.jpeg"); ?>
      <p/>
      <?php showphoto ("Photos/20110410/verandah.jpeg"); ?>

Why? It seems that <p/> is not allowed in all dialects of HTML, and browsers all interpret it in such a way that the implied CSS remains in effect after the tag. But it is in XHTML, which is what I'm using here. What a pain!


Greg's home page Greg's diary Greg's photos Copyright

Valid XHTML 1.0!

$Id: broken-photos.php,v 1.1 2013/06/19 03:06:49 grog Exp $