CSS Library: DIVs and containers: Here
CSS Gradient Shadow
Author: Michael Burt
This is a CSS and JavaScript technique that lets you add a shadow to most elements on your page with a customizable shadow depth and coloring. Just give the element in question a class name of "shadow" to activate the effect.

The CSS:
Got a question or need help customizing this CSS code? Post it in the CSS Forums. If you have a comment or suggestion instead, post it in the comments section below.
Comment Pages 1 of 7 pages 1 2 3 > Last »
Nice article. I am going to implement it soon. Let's wait and see at http://AquariumFishExporter.com.
This is a very nice way of adding shadows to pictures. Great work.
I adapted on my website a similar approach to show shadows on pictures. It is from Stu Nichols www.cssplay.co.uk. This particular way of using shadows uses only CSS.
I adapted on my website a similar approach to show shadows on pictures. It is from Stu Nichols www.cssplay.co.uk. This particular way of using shadows uses only CSS.
Can this be made to have it so the top-right and bottom left corners are straight, instead of diagonal? And a softer shadow?
looks useful. but i noticed that in firefox, increasing/decreasing the text size caused the whole layout to be "corrupted". i don't think that it would be the best idea for accessibility.
Good observation. I did not see that either.
I think this could be avoided with a little bit tinkering on the CSS Side. As in my Case in http://finaltouchinteriors.com this does not happen, but I also don't use Javascript to create the Shadows.
I think this could be avoided with a little bit tinkering on the CSS Side. As in my Case in http://finaltouchinteriors.com this does not happen, but I also don't use Javascript to create the Shadows.
Great techique DD, but can't this be done with the use of JS. I'd like to see everything kept strickly CSS.
Stu Nichols from www.cssplay.co.uk. He shows on his web site techniques with CSS only, another link is 456bereastreet.com/lab/teaser/flexible/
both are great in using CSS.
both are great in using CSS.
no image, cool, thanks..
nice script....but can it smhow b used to giv an entire pg a shadow?
You might want to add a ; after the z-index lines in the css. It may not have any adverse affect, but it's one of those things that would be better done than left as is...
Commenting is not available in this weblog entry.

