Suggest an editImprove this articleRefine the answer for “What does clamp() do?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**`clamp()`** is a CSS function that sets a value which cannot be smaller than the minimum or larger than the maximum, taking three parameters: `min`, `preferred`, `max`. **Key point:** the browser picks the "preferred" value but keeps it within the given bounds.Shown above the full answer for quick recall.Answer (EN)Image`clamp()` sets a value that cannot be smaller than the minimum or larger than the maximum. The function takes three parameters: `min`, `preferred`, `max`. The browser picks the "preferred" value but keeps it within the given bounds.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.