Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How can I achieve that shadow?

enter image description here

How can I achieve that shadow in the middle of the div? I am dividing this by 2 colors using

.box {
    width: 300px;
    height: 400px;
    background: linear-gradient(-10deg, #ffffff 50%, #d6fa02 50%);
  }

I tried using box shadow but it gave me the shadow at the top of the section not in that divide part. I am expecting this shadow exactly like this image.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Add it to the gradient

.box {
  width: 300px;
  height: 400px;
  background: linear-gradient(-10deg, #ffffff 47%,#bbb 50%, #d6fa02 50.5%);
}
<div class="box"></div>
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading