![](https://res.cloudinary.com/techfeed/image//fetch/w_280,h_210,c_fill/https%3A%2F%2Fi2.wp.com%2Fcss-tricks.com%2Fwp-content%2Fuploads%2F2020%2F03%2Fcalc-guide.png%3Ffit%3D1200%252C600%26ssl%3D1)
A Complete Guide to calc() in CSS
ARANK
CSS has a special calc() function for doing basic math. Here's an example: .main-content { /* Subtract 80px from 100vh */ height: calc(100vh - 80px); } In
CSS has a special calc() function for doing basic math. Here's an example: .main-content { /* Subtract 80px from 100vh */ height: calc(100vh - 80px); } In