-1

the requested style is here (image): enter image description here

And the developped one is here (image): enter image description here

I have used the following style but it's not the same as requested:

<section style="box-shadow: 0px 2px 16px #999;">
My content
</section>

should i work with box-shadow and change values or there is another attribut for css3 to work with ?

Drwhite
  • 1,545
  • 4
  • 21
  • 44

1 Answers1

1

Try using RGB with an alpha channel, e.g.:

box-shadow: 0px 2px 4px rgba(0,0,0,0.2);

This makes the shadow black (#000000) with opacity equal to 0.2 (20%).

JSFiddle with an example close to what you have shown.

Just make sure you check the browser support for rgba().

MMM
  • 7,221
  • 2
  • 24
  • 42