Title: WordPress 6.0 &amp; container spacing.
Last modified: June 16, 2022

---

# WordPress 6.0 & container spacing.

 *  [robertFudge](https://wordpress.org/support/users/robertfudge/)
 * (@robertfudge)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-6-0-container-spacing/)
 * Hi all,
 * I have recently shifted to the new tweeny tweeny-two theme and have been learning
   how to modify the theme. However, I can not figure out how to target and change
   the default container spacing in the theme.json.
 * **theme.json: **
    This is used for many front-end-spacing logics. … “spacing”:{“
   blockGap”: “1.5rem” }, …
 * **This is the inspector CSS:**
    There are many instances of this class. It is
   getting dynamically generated each time a block is added. The variable is pulled
   from above.
 * .wp-container-38 > * + * {
    margin-block-start: var( –wp–style–block-gap ); }
 * **The child CSS hack that I have currently:**
 * div[class^=”wp-container”], div[class*=”wp-container”], div[class*=”wp-block-
   spacer”] {
    margin-block-start: 0; }
 * How can I modify child theme.json to achieve the above CSS hack? This is required
   only for the front-end “wp-block-group” classes.
 * This did not work for me…
 *     ```
       {
           "version": 1,
           "styles": {
               "blocks": {
                   "core/group": {
                       "spacing": {
                           "marginBlockStart": "0"
                       }
                   }
               }
           }
       }
       ```
   
 * Any insight on how this works apricated, please.
 * R

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

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-6-0-container-spacing/#post-15743433)
 * I recommend asking at [https://wordpress.org/support/theme/twentytwentytwo#new-post](https://wordpress.org/support/theme/twentytwentytwo#new-post)
   so the theme’s developers and support community can help you with this.
 *  Thread Starter [robertFudge](https://wordpress.org/support/users/robertfudge/)
 * (@robertfudge)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-6-0-container-spacing/#post-15743469)
 * Thanks. Will also add the topic there.

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

The topic ‘WordPress 6.0 & container spacing.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [robertFudge](https://wordpress.org/support/users/robertfudge/)
 * Last activity: [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-6-0-container-spacing/#post-15743469)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
