+ 12

Does box shadowing only work for <div> tags

Because it did not work for my <p>tags

9th Jan 2020, 1:33 PM
Abieyuwa Idehen
Abieyuwa Idehen - avatar
9 odpowiedzi
+ 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
9th Jan 2020, 2:53 PM
Kevin E. Torres Caldas
Kevin E. Torres Caldas - avatar
+ 9
Kevin thank you
9th Jan 2020, 2:56 PM
Abieyuwa Idehen
Abieyuwa Idehen - avatar
+ 8
Ohhh
9th Jan 2020, 2:46 PM
Abieyuwa Idehen
Abieyuwa Idehen - avatar
+ 8
Thanks
9th Jan 2020, 2:46 PM
Abieyuwa Idehen
Abieyuwa Idehen - avatar
+ 8
Thanks
11th Jan 2020, 9:25 AM
Abieyuwa Idehen
Abieyuwa Idehen - avatar
+ 3
No it can work with other inline or block box
11th Jan 2020, 8:12 AM
Abhishek nirwan
Abhishek nirwan - avatar
+ 2
Try text-shadow instead of box shadow
9th Jan 2020, 1:48 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 2
سلام
10th Jan 2020, 12:52 PM
قادری
+ 1
No problem
11th Jan 2020, 12:00 PM
Abhishek nirwan
Abhishek nirwan - avatar