CSS play - popBox

6th September 2011

For IE8, IE9, Firefox, Opera, Safari and Chrome

Now working on the iPad, iPhone and iPod Touch


Puna Teal

The Puna Teal (Anas puna) is a species of dabbling duck in the genus Anas. It was previously regarded as a subspecies of the Silver Teal.



Flamingos or flamingoes are gregarious wading birds in the genus Phoenicopterus. There are four flamingo species in the Americas and two species in the Old World.


Greylag Goose

The Greylag is the largest and bulkiest of the grey Anser geese. It has a rotund, bulky body, a thick and long neck, and a large head and bill. It has pink legs and feet, and an orange or pink bill.


Demoiselle Crane

The Demoiselle Crane, Anthropoides virgo, is a species of crane that breeds in Central Asia and winters in India, with a few found in Cyprus and eastern Turkey as well.

Photographs copyright ©2011 stu nicholls - taken at Slimbridge - Wildfowl & Wetlands Trust (WWT)

copyright © stu nicholls - CSS play


A standard thumbnail image which when clicked will produce a popup panel showing a larger version of the image. But this time the large image will animate into view when using Firefox 4+, Safari, Chrome and Opera. The popup panel can also have a title and descriptive text with links if required, and a CLOSE X which when cicked will close the popup panel with the animation reversed.

For IE8, IE9 and Firefox 3 or earlier, the popup panel will have no animation.

I believe that the final release of IE10 will have support for transitions, so will see if it can animate this in the same way as all the other major browsers.

The popBox will also work in IE7, but the descriptive text will need adjusting to fit the width of the popup panel by adding <br /> tags to force line feeds.

The popup panel will adjust iteself to the size of the large image and the amount of descriptive text. The position of the popup panel can also be adjusted for each image using just three extra stylesheet lines.


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 donation to the 'Support CSSplay' fund 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}cssplay.co.uk and again a donation to the 'Support CSSplay' fund 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.

Terms and Conditions

This demonstration can be used subject to the following terms and conditions.

  1. If you wish to use this demonstration in your website(s) please email me stu{at}cssplay.co.uk seeking permission.
  2. You may NOT place this demonstration on another site for others to download.
  3. You may NOT redistrubute or resell this demonstration.
  4. Users agree not to remove or edit the credit notice within the stylesheet, or claim that this demonstration is their own.
  5. Please see the Copyright statement above regarding the requirement for a support donation.

Please Support CSS play

Please note that if your donation is for a demo/menu then you will need to email me with the url of the demo/menu after making the donation

For more CSS demonstrations I recommend that you visit the Dynamic Drive CSS Library.

Free, practical CSS menus, layouts, and examples

Soft Geometry Creative Industries

Soft Geometry Creative Industries
is a music-based design company located in Bristol UK.
I create artwork for albums, singles, posters and t-shirts.
My work is influenced by punk and post-punk poster and flyer design,
lo-fi photocopy aesthetics,
Francis Bacon and Mark Rothko.

I can provide a start to finish service with my own art and photography, put together work from images provided by yourself, and collaborate on an idea.

Follow CSS play

Facebook   Twitter   Facebook Fan Page