make one side of drop-shadow invisible code example

Example 1: box shador of one border css

.myDiv
{
  border: 1px solid #333;
  width: 100px;
  height: 100px;
  box-shadow: 10px -2px 5px 0px #888;
}

Example 2: one-sided box shadow css

.myDiv
{
  border: 1px solid #333;
  width: 100px;
  height: 100px;

  /* offset-x | offset-y | blur-radius | spread-radius | color */
  box-shadow: 10px 0 5px -2px #888;

  /* 
     Position the shadow on the side of the element
     that you want it to be, then add a negative spread radius
  */
}

Tags:

Css Example