Home > Mobile >  How do you create shadows in CSS for a DIV?
How do you create shadows in CSS for a DIV?

Time:11-18

How to create shadows in css inside an element ?

I already tried this way but couldn't get anything:

#element { shadow: 10px black; }

CodePudding user response:

You can try this way:

.shadow {
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.3);
}
.shadow-inset {
    box-shadow: 0px 10px 10px 0px rgba(0, 0, 0, 0.3) inset;
}
  •  Tags:  
  • css
  • Related