Web Design Box Study

WEB DESIGN · CSS FOUNDATIONS

Change one width. See the next line.

Separate content, padding and borders. Explore how content-box and border-box change a fixed-width layout.

App in review preparation
Browser and cursor illustration

144px can mean two outer widths

Container 360px · container padding 16px · card width 144px · card padding 16px · border 2px · gap 16px

Three empty fixed-width cards in a left-to-right wrapping flex row. On narrow screens, scroll the diagram horizontally to inspect its full width. This is a constrained example, not an arbitrary HTML runner or an official practical-exam assessor.

Start with three observations

With content-box, padding and border are added to width: 144 + 2 × 16 + 2 × 2 = 180px. Two cards plus a 16px gap do not fit the 328px inner container.

Study notes →

App in review preparation

We are preparing a paid-download app for offline study. Included learning has no extra subscription or daily question cap. Purchases, updates and external links require a connection.

The app interface and included questions are in Korean. English website guidance does not mean the question bank is translated.