Fluid Type & Clamp Calculator

Set the small and large screen endpoints, then get a CSS clamp() value that scales between them. The preview responds to your current browser width.

Responsive range

Viewport endpoints are pixels. Size values use your selected px or rem unit; rem calculations assume the browser default of 16px per rem.

Live preview

The sample updates using the clamp value at your current screen width.

Fluid type adjusts with the viewport.

CSS to copy

/* Set valid values to calculate CSS. */

Enter a valid minimum, maximum, and viewport range.