Jess McKenzie
Jess McKenzie

Reputation: 8385

CSS3: Box Shadow

Say you have a box and you use the box shadow css. How could you make this apply to only the top right bottom?

Upvotes: 0

Views: 300

Answers (1)

henryaaron
henryaaron

Reputation: 6202

There no way for you to set which sides the box-shadow applies to.

In order to have the box shadow only apply to those side, you'd have to indent the x-axis variable like this: box-shadow:4px 0 10px black;.

Here's a demo: http://jsfiddle.net/2xFuz/

Upvotes: 3

Related Questions