Is box-shadow part of box? width of shadow will be included in total width of Block element?
Asked
Active
Viewed 3,205 times
13
SamB
- 9,039
- 5
- 49
- 56
Jitendra Vyas
- 148,487
- 229
- 573
- 852
2 Answers
13
According to box-shadow: shadow effect on elements in css3, no.
box-shadow applies to the outside of the box model unless you specify "inset".
KyleMit
- 30,350
- 66
- 462
- 664
Gatekeeper
- 1,586
- 3
- 21
- 33
9
No, width of shadow is not included in the total width of the element.
And even if you specify inset, then the shadow will be inside the element, and in no way can contribute to the total width.
Aniket
- 9,622
- 5
- 40
- 62