Mobile Friendly Website


Doing it with style

CSS DEMOSA simple CSS photo-album

Date : 31th July 2006

For all modern browsers


I have had many requests for a simple photo-gallery in which there is a horizontal row of numbers across the bottom of the gallery, and when your visitors click any of these numbers a corresponding full size image is displayed above.

Well this is about as simple as it gets. The text numbers and images are held in an unordered list without any extra markup (no 'ems' or 'spans' etc). The CSS just styles the text numbers so that they appears in a box and the images so that they are hidden until your visitor clicks a number square.

I have used both landscape and portrait images to show how these can be accommodated and have limited the sizes to 320 x 240 pixels and 240 x 320 pixels just to show the method. You can, of course, resize this to fit any size/combination of images.

Because of all the time and effort spent in producing this demonstration I would ask that you respect my copyright.

  1. If you are using this on a personal web site then please retain the copyright comment in the stylesheet.
    A support donation is now required for this demonstration.
  2. If you are using this on a commercial web site, or as a paying job for a client, then please email me asking for permission - stu{at} and again a support donation is required.
  3. If you are having problems integrating any of my demonstrations into your website then I now offer a service to fault find and correct any errors that you may have introduced. Please email me for more information.


Your donations keep CSS PLAY running.
If your donation is for the use of a demo then please email me with the demo url after making your donation.


Facebook Twitter rss feed Facebook Fan Page