How to apply box-shadow on all four sides?

dragonfly picture dragonfly · Apr 10, 2011 · Viewed 203.2k times · Source

I'm trying to apply a box-shadow on all four sides. I could only get it on 2 sides:

Answer

Damb picture Damb · Apr 10, 2011

It's because of x and y offset. Try this:

-webkit-box-shadow: 0 0 10px #fff;
        box-shadow: 0 0 10px #fff;

edit (year later..): Made the answer more cross-browser, as requested in comments :)

btw: there are many css3 generator nowadays.. css3.me, css3maker, css3generator etc...