+ 1
Isn't it ? đ
When setting a background-color to a box, it covers the content area, as well as the padding. Unless you specify content area properties...
5 Answers
+ 3
Use background-clip to define background color or image area.
Take a look at this sample here..
https://code.sololearn.com/WH2t0RN549k5/?ref=app
+ 4
background clip text is super Awesome
https://code.sololearn.com/Wc5147EK2Vko/?ref=app
+ 2
There's an interactive code snippet in this link that should help clarify:
https://css-tricks.com/box-sizing/
+ 2
Another effect by background-clip: text
https://code.sololearn.com/W9W6M3SHhH8e/?ref=app
+ 1
well thanks !