How to Make a Blurred Gradient Shadow with CSS

CSS3 Box-Shadow Linear Gradient?

Unfortunately, this is not possible. I suggest just using a div with a background-image that you create on Photoshop or likewise.

How can I get a very blurred box-shadow out of only the bottom of the box?

The best way to go about this might be, to use css-gradients instead of shadows.

I have done a little demo on jsfiddle. I am not sure this is what you are looking for though. Here is the css I used:

background: rgb(254,255,255); /* Old browsers */
background: -moz-linear-gradient(top, rgba(254,255,255,1) 69%, rgba(226,226,226,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(69%,rgba(254,255,255,1)), color-stop(100%,rgba(226,226,226,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(254,255,255,1) 69%,rgba(226,226,226,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(254,255,255,1) 69%,rgba(226,226,226,1) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(254,255,255,1) 69%,rgba(226,226,226,1) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(254,255,255,1) 69%,rgba(226,226,226,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#feffff', endColorstr='#e2e2e2',GradientType=0 ); /* IE6-9

As generated by this tool



Related Topics



Leave a reply



Submit