-3

I am using thse box

Border radius

.box{
width:200px;
height:200px;
background-color:blue;
box-shadow:-20px 0px red;
}
<html>
    <head><head>
    <body>
        <div class="box">
   </div>
    </body>
</html>

how can solve this?????

  • 4
    It's `box-shadow: inset 0px -20px 0px red;` – Dai Nov 29 '21 at 14:15
  • The first step to answering any syntax question should be checking [documentation](https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow) – DBS Nov 29 '21 at 14:18

3 Answers3

1

Create an innner box shadow using CSS like this....

box-shadow: inset 0px 0px 5px red;

Notice how the word inset is the only difference from a normal box shadow.

1

Use box-shadow: inset apx bpx cpx color;.

.box{
width:200px;
height:200px;
background-color:blue;
box-shadow: inset 0px 0px 20px red;
}
<html>
    <head><head>
    <body>
        <div class="box">
   </div>
    </body>
</html>
Sato Takeru
  • 1,034
  • 1
  • 3
  • 15
0

Using box-shadow: inset 0px 0px 10px rgba(0,0,0,0.9);

know more than click

coo zera
  • 147
  • 1
  • 20