call(back)

How Do You Adjust a Border or a Margin?

How do you adjust a border or a margin?

Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.

Hints

Hint 1

Walk the box model from the inside out, and say what box-sizing changes.

Solution

Show the approach

Answer

The box model from the inside out: content, padding, border, margin. box-sizing: border-box makes width include the padding and border, which is why most resets set it everywhere.

Asked at