try the negative spread values ββin the shadow-css field
Instead of creating a second div with fancy margins and hiding, try playing with a negative spread value. This reduces bleeding on the sides, which you do not want your shadow to appear. Play with an example on my jsfiddle, set the scatter to 0, -10, -5 ... you will quickly get it.
http://jsfiddle.net/CoryDanielson/hSCFw/
the code:
#glow { box-shadow: 0px -10px 15px -4px rgba(255,000,000,0.7), 0px 5px 15px 0px rgba(000,000,000,0.7), 5px 0px 15px 0px rgba(000,000,000,0.7), -5px 0px 15px 0px rgba(000,000,000,0.7); -webkit-box-shadow: 0px -10px 15px -5px rgba(255,000,000,0.7), 0px 5px 15px 0px rgba(000,000,000,0.7), 5px 0px 15px 0px rgba(000,000,000,0.7), -5px 0px 15px 0px rgba(000,000,000,0.7); -moz-box-shadow: 0px -9px 10px -6px rgba(255,000,000,0.9), 0px 5px 10px 0px rgba(000,000,000,0.7), 5px 0px 10px 0px rgba(000,000,000,0.7), -5px 0px 10px 0px rgba(000,000,000,0.7); }
I had to play around with properties a bit to make them look the same across browsers. Mozilla / FF was the biggest pain. See how much the values ββdiffer ... it's a kind of tedious cat-and-mouse game, throwing away blur with spread ...
- box-shadow is used in IE.
- webkit is used in Chrome.
- moz is used in Firefox.