Title: Minify CSS Calc Problem
Last modified: March 31, 2020

---

# Minify CSS Calc Problem

 *  [Jason Wong](https://wordpress.org/support/users/eljkmw/)
 * (@eljkmw)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/minify-css-calc-problem/)
 * I noticed when minifying CSS with calc(), the spaces before and after for plus(
   +) and minus (-) signs are removed. This causes a problem for web browsers as
   unrecognisable and invalid values. However, the spaces removed for multiplication(*)
   and division (/) are still recognisable.
 * For example,
 * Non-minified:
    div { width: calc(100% + 100px); } div { width: calc(100% – 100px);}
 * Minified:
    div { width: calc(100%+100px); } div { width: calc(100%-100px); }
 * This problem can be easily reproduced.
    Please look into this issue, and hopefully
   a fix in your next release.
 * Thank you very much.

Viewing 1 replies (of 1 total)

 *  Plugin Author [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * (@adeelkhan)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/minify-css-calc-problem/#post-13033273)
 * While the minification option is enabled it compact the code by removing spaces
   in it. You can simply exclude the code from minification to solve the problem.

Viewing 1 replies (of 1 total)

The topic ‘Minify CSS Calc Problem’ is closed to new replies.

 * ![](https://ps.w.org/breeze/assets/icon-256x256.gif?rev=3352595)
 * [Breeze Cache](https://wordpress.org/plugins/breeze/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/breeze/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/breeze/)
 * [Active Topics](https://wordpress.org/support/plugin/breeze/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/breeze/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/breeze/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [adeelkhan](https://wordpress.org/support/users/adeelkhan/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/minify-css-calc-problem/#post-13033273)
 * Status: not resolved