Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asymmetrical CSS Shadow

Tags:

html

css

Is there a way to create a shadow like this:

enter image description here

What I want is shadow that is bigger on the bottom-center than on the bottom-left/right.

like image 652
user2013488 Avatar asked May 30 '26 04:05

user2013488


1 Answers

http://jsfiddle.net/PtbNb/1/

<div class="box"></div>

.box {
    -webkit-box-shadow: -10px 32px 24px -28px rgba(0, 0, 0, 1);
    -moz-box-shadow: -10px 32px 24px -28px rgba(0, 0, 0, 1);
    box-shadow: -10px 32px 24px -28px rgba(0, 0, 0, 1);
    height:250px;
    width:250px;
    background:grey;
}

Generator: http://www.cssmatic.com/box-shadow

like image 152
daniel__ Avatar answered May 31 '26 17:05

daniel__



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!