Doing it with style
Just click any of the thumbnail images below to open a larger image which will be centered horizontally on the screen.
You can also have a text link to the 'Clickbox' image :
Click to view palm treeThe photograph description text goes here.
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.
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.