skip to content
Advertise here

CSS play - 'Clickbox'

8th January 2010

Absolutely NO javascript and now working in Safari(PC) and Google Chrome



Just click any of the thumbnail images below to open a larger image which will be centered horizontally on the screen.


Daffodil is a common English name, sometimes used now for all varieties, and is the chief common name of horticultural prevalence used by the American Daffodil Society.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus vitae sem orci, eget ultrices leo. Morbi nec nisl et odio vestibulum sodales.
Fusce interdum massa eget nibh viverra at tincidunt lectus tempor. Mauris orci tortor, sagittis a elementum in, consectetur a purus.
Un hac habitasse platea dictumst. Fusce sit amet lacus erat.
Ut rhoncus semper eleifend. Aenean lorem massa, varius nec volutpat in.
Duis diam lectus, vestibulum eget porta ut, aliquam ut urna.
Aliquam pretium risus eu ipsum eleifend euismod vitae at augue.
Etiam at mi ut diam accumsan congue.
Broin quis nibh vel dui vulputate bibendum vitae id tortor.
Mauris sit amet diam luctus justo faucibus facilisis.
Ut vitae quam tortor, quis tempor metus.
Donec consectetur, nunc at luctus blandit, ipsum sapien varius turpis, nec ultrices nisl massa vel dui.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
Donec sed eros purus, nec congue urna.
Cras placerat purus sed turpis ultricies aliquam.
Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
It mattis sagittis sem auctor imperdiet.

You can also have a text link to the 'Clickbox' image :

Click to view palm treeVestibulum aliquet sagittis orci, eget sodales arcu vulputate non.




© 2010 - stu nicholls - cssplay.co.uk


CSS play Support


CSS play Recommend

Free, practical CSS menus, layouts, and examples

Follow CSS play

Facebook  Twitter  Facebook Fan Page



Just CSS | Designs for the future

Like the CSS Zen Garden?
Then why not visit Just CSS and see it you can design for the future.




Information

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.




Copyright

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 add a link back to CSSplay and retain any copyright comment in the stylesheet.
A donation to the 'Support CSSplay' fund would be appreciated.

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 in this case 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.




  • Each week the Creare Group produce video tutorials for SEO and tips and tricks for the web design industry.
  • We offer nothing but the highest quality SEO, Social Media Optimisation And PPC services to businesses in London

 

CSS play Testimonial

"The citroen.co.uk web site uses
CSS play code for the site drop down menus.
This code works seamlessly in IE 6 & 7, and is an excellent solution to the Creative requirements of the site."

Damon Clark - Brandwidth