I got stuck using the inset property, I get this error of invalid property value on my inspect, my code is working well but it refuses to apply to my browser.enter image description here
Here's my code
div {
padding: 5px 10px;
box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px -8px #fff;
border-radius: 20px;
}
<div></div>
CodePudding user response:
You specified a negative value for the shadow blur, which is not valid.
div {
padding: 5px 10px;
box-shadow: inset 8px 8px 8px #cbced1, inset -8px -8px 8px #fff;
border-radius: 20px;
width: 50px;
height: 50px;
}
<div></div>