💬 Campus Projects & Collaboration

Question of the day: box-sizing: border-box?

A

Anthony Olajide

Jan 2, 2026 at 2:56 PM

3 replies 304 views
Image

Image

What does[s]`[/s]box-sizing: border-box` do?

a. Padding and border are included in the element's total width and height

b. Only padding is included in the element's total width and height

c. Only border is included in the element's total width and height

d. Margin, padding, and border are included in the element's total width and height

3 Replies

Sign in to join the conversation

d

diltony@yahoo.com

5 days ago
["Question of the day","Question of the day: box-sizing: border-box?"]
A

Anthony Olajide

5 days ago
Margin, padding are beginners night-mares, it will be good if we can have graphical representation for these things! Cant wrap my head around this one o!
A

Anthony Olajide

5 days ago
@"jenny"#p485 I know right. It's quite hard to fully understand as a beginner. The box model in Google Chrome developer tools will help in visualizing it. I used it a lot to fully understand margin and padding. Infact I still use it on some occasions.