Lesson 25 of 50
cssCSS Functions – calc(), clamp(), min(), max()
8 mins
Course progress50%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 25 of 50
css8 mins
Keep these ideas in mind as you work through the lesson.
Functions let you perform calculations directly in CSS.
calc() – arithmetic (width: calc(100% - 2rem);).clamp(min, val, max) – fluid values with hard limits.min() / max() – pick the smallest or largest of a list.clampsection { padding: clamp(1rem, 2vw, 3rem); }