On this page
  1. box-sizing
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

box-sizing

Prev: box_model | Up: box_model | Next: `margin`
Rel: box_model, Box Model & Sizing Guide
Ref: MDN Web Docs — box-sizing
Tags: #public #web #css #properties #box_model #tier/core


Syntax & Overview

box-sizing: border-box;

Determines whether width/height include padding and borders.

Notes & Best Practices

Example

*, *::before, *::after {
  box-sizing: border-box;
}

Linked from

Related notes