Skip to contents

Converts numeric values to pixel strings, passes through string values.

Usage

format_dimension(dim)

Arguments

dim

A numeric value (pixels) or string with units (e.g., "30vw")

Value

A CSS-compatible dimension string