CSS calc() – Multiplication and Division with unit-ed values

In CSS calc() division – the right side must be a <number> therefore unit based values cannot be used in division like this.

Also note that in multiplication at least one of the arguments must be a number.

The MDN has great documentation on this.

If you’d like a better way to do calculations you can use a preprocessor (I like Sass). That link will take you to their guides (on that page there’s a section about operators).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)