#css-units

[ follow ]
iO tech_hub
3 months ago
Web design

Going beyond pixels and (r)ems in CSS - Absolute length units - iO tech_hub

Absolute CSS units like pixels can be useful for precise layouts and working with external media.
Absolute units like centimeters, millimeters, and inches are suitable for print layouts and fixed-size outputs. [ more ]
iO tech_hub
5 months ago
Web design

Going beyond pixels and (r)ems in CSS - Relative length units based on font - iO tech_hub

The cap unit is useful for creating scale-independent and responsive layouts.
The ch unit represents the width of the character 0 and can be used to align elements based on the font size. [ more ]
CSS-Tricks
3 weeks ago
JavaScript

CSS Length Units | CSS-Tricks

CSS uses various units like pixels, em, rem, percentages, characters, viewport, and container units to define elements' dimensions. [ more ]
[ Load more ]