In CSS, Some Infinities Go Beyond

Kenton de Jong
3 min readApr 9, 2024
That’s not Buzz. It’s Boris. Boris is AI generated.

You’re probably familiar with CSS units such as px, rem, em, and maybe even more exotic units like dvh, deg or kHz, but there is another value that (as of April 5, 2024) isn’t even listed on MDN’s CSS Values and Units, and that is infinity.

I’m going to burst your bubble right now though, and tell you that infinity is not actually infinite. Depending on your browser, when infinity is used on the width

--

--

Kenton de Jong

I am a web developer turned travel blogger that is forced to code to eat.