Skip to content

Glossary: HTML & CSS Basics

max-width

Also written: max-width: 100%

A CSS property that caps how wide an element can grow, so it fills a narrow phone screen but stops at a comfortable size on a wide one.

Where the book teaches it

Related terms

box-sizingUnits (px, rem, em, %, vw, ch)