Drop shadows on divs using CSS/Javascript?

How about a semi-transparent div?

If you specify each div with a shadow div, spec the shadow div to have a slightly lower z-index, make it black and set the transparency to say, 25%, it will put a shadow over whatever is "beneath" it.

Another alternative might be to use a PNG with transparency change, though PNG doesn't work IE<7
 
No tutorial really... just when you specify your div (assuming you are using fixed/relative positions and not float) you simply offset it an extra x/y (so if it has left 50, top 50, it become left : 55 if your offset is 5.

Make the transparency 50%, background black and hey presto :)
 
Back
Top Bottom