Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thanks. After reading your explanation it became clearer that the reason you use clamp is because you're using different units (e.g. rem vs %, px vs vw) and varying page dimensions may affect those units differently (e.g. 10% may be larger or smaller than 100px depending on the parent's width).

Here I read the entire MDN article on clamp and it didn't click in my mind until you explained it.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: