skip to Main Content

Css – How to use calc correctly?

:root { --offset: 30px; } .grid-cols-custom { /* Calculate the column widths using custom properties and calc() */ grid-template-columns: calc((424px / (100% - var(--offset))) * 100%) calc((608px / (100% - var(--offset))) * 100%); here in a grid I have 2…

VIEW QUESTION
Back To Top
Search