Title: CSS grid layout broken
Last modified: September 2, 2021

---

# CSS grid layout broken

 *  [alexlana](https://wordpress.org/support/users/alexlana/)
 * (@alexlana)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/css-grid-layout-broken/)
 * Hi! Thank you for the great work on this plugin!
 * The plugin broke a CSS grid layout. When I turn on CSS minification or combine
   this code:
 *     ```
       #publicacoes {
       	display: grid;
       	grid-column-gap: 45px;
       	grid-row-gap: 45px;
   
       	grid-template-columns: calc( 50% - 22px ) calc( 50% - 22px );
   
       	grid-auto-rows: minmax(min-content, max-content);
       	padding-top: 40px;
       }
       ```
   
 * Change to this:
 *     ```
       #publicacoes {
       	display: grid;
       	grid-column-gap: 45px;
       	grid-row-gap: 45px;
   
       	grid-template-columns: calc( 50% - 22px ); /* second column gone */
   
       	grid-auto-rows: minmax(min-content, max-content);
       	padding-top: 40px;
       }
       ```
   
 * Any idea for workaround?

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

 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/css-grid-layout-broken/#post-14840168)
 * [@alexlana](https://wordpress.org/support/users/alexlana/) this shouldn’t happen,
   indeed! I just checked it out and indeed, it removes the second column! I’m on
   it and a fix will be released as soon as possible. The same thing happens in 
   the Pro version so that one will also be updated.
 *  Plugin Author [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * (@gabelivan)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/css-grid-layout-broken/#post-14840609)
 * [@alexlana](https://wordpress.org/support/users/alexlana/) I’ve added a patch
   to the plugin that fixes this and you shouldn’t have this problem anymore. You
   can download it from here: [https://www.gabelivan.com/_releases/wp-asset-clean-up-v1.3.8.2-patched.zip](https://www.gabelivan.com/_releases/wp-asset-clean-up-v1.3.8.2-patched.zip)(
   just delete the version you have and install this one which has the fix)
 * Looking forward to your feedback! In my tests, everything works fine.

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

The topic ‘CSS grid layout broken’ is closed to new replies.

 * ![](https://ps.w.org/wp-asset-clean-up/assets/icon-256x256.png?rev=1981952)
 * [Asset CleanUp: Page Speed Booster](https://wordpress.org/plugins/wp-asset-clean-up/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-asset-clean-up/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-asset-clean-up/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-asset-clean-up/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-asset-clean-up/reviews/)

## Tags

 * [css grid](https://wordpress.org/support/topic-tag/css-grid/)

 * 2 replies
 * 2 participants
 * Last reply from: [Gabe Livan](https://wordpress.org/support/users/gabelivan/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/css-grid-layout-broken/#post-14840609)
 * Status: not resolved