Day 32: the clamp() function

from blog Manuel Matuzović - Blog, | ↗ original
↗ original
The clamp() function defines a minimum value, a preferred value, and a maximum value. .div { border: 1em solid hwb(200 0% 0%); padding: 1rem; } .minmax { width: max(300px, min(90%, 700px)); } .clamp { width: clamp(300px, 90%, 700px); } .max { width: max(300px, 90%); } .min { width: min(90%, 700px); } A quick recap of min() and max()...