How One calc() Function Changed Everything

This week’s blog is going to be a little different than what I usually write about. I want to share one, if not the most, useful trick I have come across with CSS.

It has allowed me to dynamically scale any HTML element I desire, and it has also removed many of the reasons I’d write media queries.

Before anything, I would like to credit Mike Riethmuller for originally coming up with this function and Geoff Graham of CSS-Tricks for expanding upon its functionality. I am no way taking credit for creating this function. I only want to sing it’s praise.

So, let’s get styling.

#css #web-development #html #developer

Dynamic Element Scaling in CSS
3.15 GEEK