Reputation: 293
I know how to use CSS3 shadows. However I am trying to achieve a specific design. I want the shadow to be a lot lighter and faded off on the left and right edges, please see image attached.
The only code I have come up with is the following. But not sure how to make the edges fade out more.
.shadow {box-shadow: 0 10px 6px -6px #000000;}
Any tips be helpful
Upvotes: 3
Views: 13429
Reputation: 7778
hi you can create oval shaped css3 shadow through border-radius & box-shadow....
or can see the live demo:-http://jsbin.com/elacen/5/edit
Upvotes: 1
Reputation: 1452
Something like this?
box-shadow: 0px 20px 37px -28px #000000;
note about parameters: CSS3's Box-Shadow Adds Drop Shadows, Inner Shadows
Upvotes: 2
Reputation: 871
I use a combination of box-shadow, border-radius and clip.
http://dabblet.com/gist/2225507
Upvotes: 13