Mobile Friendly Website


Doing it with style

CSS DEMOS'Clickbox'

Date : 8th January 2010

For all modern browsers


This is a follow on to my previous CSS Light Box - Click version which was shown as a standalone page and had several flaws when it came to integrating into a web page.

The version above answers most of the problems and shows how this can work within a page layout.

In all browsers except IE6 and lower, the popup image is fixed in position on the screen and the page will scroll beneath it. In IE6 the popup image will scroll with the page but the darkened background will extend to cover the whole page.

As shown, the link to the large image can be a thumbnail image or text.

I have also managed to get Safari(PC) and Google Chrome to keep the 'Clickbox' on screen after the mouse button is released so that this now works in all the major browsers.

Unfortunately IE8 appears to have a bug in that the click to close action does not work correctly so for the time being (until I can find a way around this) I have switch this browser into IE7 emulation.

The only limitation with the 'Clickbox' is that any outer container for the .clickbox links should not have a relative or absolute position so that 'Clickbox' can find the top left corner of the browser window.

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