Text Widget

Wednesday, June 9, 2010

CREATE A LIGHTBOX WITHOUT JAVASCRIPT ONLY WITH CSS

CREATE A LIGHTBOX WITHOUT JAVASCRIPT ONLY WITH CSS

lightbox You can make wonderful lightbox effect without JavaScript only with CSS. You can adjust the lightbox shadow light.

The black_overlay class is the layer that will make the web page seem to fade. It’s a black 80% opaque background as long and wide as the browser that will overlay the web page (look at the z-index) and at the moment is not shown (look at the display).
The white content class is the layer with the photo/login screen/whatever you want to appear in the Lightbox overlay. It’s a white layer to be placed over the black_overlay layer (look at the z-index, greater than the black_overlay one). The overflow allows you to have a scrollable content.

 

we got it Source:http://www.emanueleferonato.com/2007/08/22/create-a-lightbox-effect-only-with-css-no-javascript-needed/

read more...