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.

Assistant

Sign in to use the assistant — ask what the problem means, get a hint when you're stuck, or have your current work reviewed. Conversations save to your account.

Asked at

Similar Problems1