Title: minify css and calc function
Last modified: January 7, 2019

---

# minify css and calc function

 *  Resolved [Stormit](https://wordpress.org/support/users/stormit/)
 * (@stormit)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/minify-css-and-calc-function/)
 * Hello author,
 * Thank you for this awesome plugin!
 * I’m having a problem. In my css, I use calc() [https://www.w3schools.com/cssref/func_calc.asp](https://www.w3schools.com/cssref/func_calc.asp).
   This function needs space in () to work. But when I enable minify css, it clears
   all spaces. calc(100% – 100px) will become calc(100%-100px). So it does not work
   correctly.
 * So, my question is: is there any way to solve this issue?
 * Thank you very much!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/minify-css-and-calc-function/#post-11064149)
 * Hello,
 * Currently, we do not have a solution for spaces within calc().
    can you please
   share the exact syntax used in CSS so we can replicate the issue and fix for 
   the future release?
 *  Thread Starter [Stormit](https://wordpress.org/support/users/stormit/)
 * (@stormit)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/minify-css-and-calc-function/#post-11064972)
 * Hello Marko,
 * Thank you for your reply!
 * You can see syntax in the link which I sent you [https://www.w3schools.com/cssref/func_calc.asp](https://www.w3schools.com/cssref/func_calc.asp)
 * Best regards,
 *  Plugin Contributor [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * (@gidomanders)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/minify-css-and-calc-function/#post-11065236)
 * [@stormit](https://wordpress.org/support/users/stormit/) we unsuccessfully tried
   to reproduce this issue. Could you share more details, like the CSS file being
   minified, if you use other plugins to minify (too) and your settings (just include
   the contents of your `wp-content/w3tc-config/master.php` file)? That way we might
   be able to find the flaw and help you further.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘minify css and calc function’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [gidomanders](https://wordpress.org/support/users/gidomanders/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/minify-css-and-calc-function/#post-11065236)
 * Status: resolved