+ 12
Does box shadowing only work for <div> tags
Because it did not work for my <p>tags
9 Respuestas
+ 3
Box-shadow works in other HTML elements not only in the <div> tag, what happens is that "box-shadow" creates the shadow around the box-shaped element, if you would like the shadow of the <p> tag have that text-shaped you can use "text-shadow".
https://developer.mozilla.org/es/docs/Web/CSS/box-shadow
https://developer.mozilla.org/es/docs/Web/CSS/text-shadow
I leave some examples that may be useful.
https://code.sololearn.com/W4L0VKbV5wMa
+ 9
Kevin thank you
+ 8
Ohhh
+ 8
Thanks
+ 8
Thanks
+ 3
No it can work with other inline or block box
+ 2
Try text-shadow instead of box shadow
+ 2
سلام
+ 1
No problem