Best approach to css drop shadow technique - non image

986 views Asked by At

Looking for the best approach for a non-image CSS Drop Shadow technique.

I have a popup that I would like to add a shadow to.

Bonus question:

Can it work with:

  • -moz-border-radius
  • -webkit-border-radius
2

There are 2 answers

0
Alix Axel On BEST ANSWER

You can use box-shadow and -webkit-box-shadow, see:

http://net.tutsplus.com/tutorials/html-css-techniques/html-5-and-css-3-the-techniques-youll-soon-be-using/

for more info.

0
Malte Clasen On

I can't tell whether it's the best approach, but you might want to check out the ASP.NET AjaxControlToolkit DropShadow extender. It creates a few styled div to simulate the shadow.