Box-shadow


#1

I need to know what is the rgba (0,0,0,0.2) in lesson 25. you've done it
img {
height: 170px;
width: 170px;
box-shadow: rgba(0,0,0,0.2) 10px 10px;
}
when can I use the rgba(0,0,0,0.2) ?!
please I need the answer as soon as possible !


#2

You can use it, but there is no x or y offset, so the shadow will be under the box

try something like this:

/* offset-x | offset-y | blur-radius | spread-radius | color */
box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);

recourse: box-shadow on mdn


#3

Thank you very much.
That was so helpful :blush: