10
box-shadow: 3px 3px 6px 6px;

this property is working in chrome firefox IE but not in safari 5 browser

I tried writing like this but it isn't working

-webkit-box-shadow:3px 3px 6px 6px;
NullPoiиteя
  • 56,591
  • 22
  • 125
  • 143
alli prashanth
  • 149
  • 2
  • 2
  • 6

5 Answers5

28
-webkit-appearance: none;
-webkit-box-shadow: 3px 3px 6px 6px #addacolor;
box-shadow: 3px 3px 6px 6px #addacolor;
Mini John
  • 7,855
  • 9
  • 59
  • 108
5

you haven't defined color here (box-shadow: h-shadow v-shadow blur spread color inset;)

<color> If not specified, the color used depends on the browser - it is usually the value of the color property, but note that Safari currently paints a transparent shadow in this case.

so define color for safari

-webkit-box-shadow: 3px 3px 6px 6px #color_you_want;
NullPoiиteя
  • 56,591
  • 22
  • 125
  • 143
3

For reference, I had a similar problem with this box-shadow :

box-shadow: 0 0.06rem 0 0 rgba(44, 43, 63, 0.1); (very small shadow!)

It was working in other browsers except for Safari(v.8) who didn't show that shadow. I had to increase the value.

Mohamed Ramrami
  • 12,026
  • 4
  • 33
  • 49
1

Have you tried with

-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
box-shadow: 10px 10px 5px #888;
Anagio
  • 3,005
  • 9
  • 44
  • 81
  • @alliprashanth you're welcome if you found this helpful feel free to up vote or mark it as the answer – Anagio Sep 23 '13 at 07:01
1
#example1 {
-moz-box-shadow: 10px 10px 5px #888;
-webkit-box-shadow: 10px 10px 5px #888;
 box-shadow: 10px 10px 5px #888;
 }

https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow

http://www.css3.info/preview/box-shadow/