0

Border-box and padding-box

#first { border: 2px dotted black; padding: 20px; background: LightBlue; background-clip: padding-box; } #second { border: 2px dotted black; padding: 20px; background: LightBlue; background-clip: border-box; } What is the basic difference between border-box and padding-box?

6th Dec 2018, 8:26 AM
Md Zahir Raihan
Md Zahir Raihan - avatar
2 odpowiedzi
+ 2
Please review: https://www.sololearn.com/learn/CSS/2245/?ref=app Be sure to play around with the Try It Yourself feature. Might also be helpful to make the border thicker so you can see better.
6th Dec 2018, 9:03 AM
Janning⭐
Janning⭐ - avatar