Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Mia (web luddite)
@mia@front-end.social  ·  activity timestamp 2 weeks ago

For spacing values on a website – is it better to respond to font-size, or available space, or stick with static units?

You don't have to choose! Sometimes the best unit in CSS is a combination – with calc()/clamp() or min()/max() or round() & other math functions.

https://www.oddbird.net/2025/09/23/type-units/ #css

OddBird

The Best CSS Unit Might Be a Combination

We don't have to choose between px and rem for spacing
  • Copy link
  • Flag this post
  • Block
Log in

Open Science

We are a network of scientists, developers and organizations building the next generation of digital spaces for open science.

Open Science: About · Code of conduct · Privacy · Users · Instances
Bonfire open science · 1.0.0-rc.3.6 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login