Fluid Size

Calculate CSS clamp values for fluid sizing

Size 1

Unit
Unit

Size 2

Unit
Unit

Size 3

Output Settings

Output Unit
Relative to

Output Preview

700px

Output Graph

020040060080010001200050100150200250300
Size (px) Viewport Width (px)

CSS

--fluid-size: clamp(100px, 18.75vw + 25px, 250px);

About

  • The calculated value will scale between the two sizes based on their matching viewport/container width.
  • Supported in all modern browsers, exact support depends on the relative unit:
  • Previews are limited by their container, but you can go as big as you like!
  • Similar to Utopia, but for arbitrary sizes outside your scale.