loading...

Reading Snippets [52 => CSS] 🎨

calvinoea profile image Calvin ・1 min read

Calc() can be used in CSS to perform math operations on values.

It can be used for performing different calculations, including adding and subtracting values, using percentages.

For example:

div {
max-width: calc(80% - 100px)
}

Flavio Copes,The CSS Handbook

Discussion

markdown guide