Title: Minify HTML blocks CSS
Last modified: February 2, 2021

---

# Minify HTML blocks CSS

 *  Resolved [mithrasb](https://wordpress.org/support/users/mithrasb/)
 * (@mithrasb)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/minify-html-blocks-css/)
 * Hi,
 * When I enable ‘Minify the HTML output’, one specific CSS declaration for my navigation
   bar doesn’t work:
 * [@media](https://wordpress.org/support/users/media/) (min-width: 992px) {
    .navigation-
   bar { text-align-last: justify; } }
 * All other CSS works fine. How can I fix this?
 * Cheers!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fminify-html-blocks-css%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Stoyan Georgiev](https://wordpress.org/support/users/stoyangeorgiev/)
 * (@stoyangeorgiev)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/minify-html-blocks-css/#post-14001237)
 * Hello there [@mithrasb](https://wordpress.org/support/users/mithrasb/),
 * There seems to be an issue with the CSS inheritance, caused by improper element
   inheritance. When activating the HTML minification the last element in the menu
   is not inheriting the media query. This may be caused because the element is 
   not displayed or it is inheriting the properties of one of its parents. You can
   keep the option disabled or check your css rules.
 * Kind Regards,
    Stoyan

Viewing 1 replies (of 1 total)

The topic ‘Minify HTML blocks CSS’ is closed to new replies.

 * ![](https://ps.w.org/sg-cachepress/assets/icon-256x256.gif?rev=2971889)
 * [Speed Optimizer - The All-In-One Performance-Boosting Plugin](https://wordpress.org/plugins/sg-cachepress/)
 * [Support Threads](https://wordpress.org/support/plugin/sg-cachepress/)
 * [Active Topics](https://wordpress.org/support/plugin/sg-cachepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sg-cachepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sg-cachepress/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Stoyan Georgiev](https://wordpress.org/support/users/stoyangeorgiev/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/minify-html-blocks-css/#post-14001237)
 * Status: resolved