0

How can i get these spaces covered with this box shadow?

enter image description here

CSS-

.button
{
  height:24px;
  width:120px;
  background:black;
  position:absolute;
  border-radius:2px;
  padding:3px;
  box-shadow:4px 4px 0px 0px #444;
}

Just a fiddle

dgilperez
  • 10,716
  • 8
  • 68
  • 96
Manoz
  • 6,507
  • 13
  • 68
  • 114

3 Answers3

0

Changing the h-shadow and v-shadow will position the shadow on the box. If you want the shadow to be closer, change the distance of the shadow.

Test it here

whastupduck
  • 1,156
  • 11
  • 25
0

Using close shadows might not get you that much effect. Instead you can use background properties and positions... Here is a good example.

Bhavik
  • 4,836
  • 3
  • 30
  • 45
0

Try this:-

.button
{
height:24px;
width:120px;
background:black;
position:absolute;
border-radius:2px;
padding:3px;
box-shadow:2px 2px 0px 2px #444; // changed
}
Vivek Sadh
  • 4,230
  • 3
  • 32
  • 49