DEV Community

Discussion on: My 5 favorite CSS tricks I learned this year

 
vyckes profile image
Kevin Pennekamp

It depends. Yes calc() is more expensive to run, but most browsers are shipped with highly optimized engines. On the other end, shipping more CSS to users impacts the loading time of the website. It's a balancing act for the users!

Thread Thread
 
urielbitton profile image
Uriel Bitton

of course. Usually one doesn't use calc for widths on all elements. I use it like max 2-3 elements per stylesheet