0

I want to know how can I make this effect:

white-shadow.

That white shadow on right.

John Weisz
  • 30,137
  • 13
  • 89
  • 132
vycdev
  • 29
  • 1
  • 6
  • Possible duplicate of [Inset Box Shadow only on one side?](https://stackoverflow.com/questions/17572619/inset-box-shadow-only-on-one-side) – Rob Jun 17 '17 at 15:37

2 Answers2

2

This is done with the box-shadow property. You can read about it here.

.example {
  background: red;
  box-shadow: 10px 10px 8px rgba(0, 0, 0, .3);
  height: 200px;
  width: 200px;
}
<div class="example"></div>
hammy
  • 21
  • 3
1

Use box-shadow (https://developer.mozilla.org/en/docs/Web/CSS/box-shadow)

Here's an example for the desired effect:

div {
    width: 300px;
    height: 100px;
    background-color: lightgray;
    box-shadow: 10px 10px 5px #888888;
}
<div></div>
BlueEyesWhiteDragon
  • 427
  • 1
  • 6
  • 20
Ricky Dam
  • 1,833
  • 4
  • 23
  • 42