# SOLVED: Gutenberg Image block rule preventing alignwide, alignfull

**URL:** <https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234>\
**Category:** Bugs\
**Tags:** v2-1-2\
**Created:** [October 14, 2025, 9:45am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234 "2025-10-14T09:45:06Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MattHias](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matthias/32/34256_2.png) [@MattHias](https://forum.bricksbuilder.io/u/MattHias)\
**Post date:** [October 14, 2025, 9:45am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/1 "2025-10-14T09:45:07Z")

</div>

Bricks defines rules for Gutenberg in frontend-layer(.min).css.  
One of them is

```auto
.wp-block-calendar, 
.wp-block-image:not(.wp-block-gallery .wp-block-image), 
figure[class^="wp-block-"]:not(.wp-block-gallery figure):not([class^="align"]) {
    width: 100%;
}

```

When inserting an Image block in Gutenberg and setting it to align wide or align full, the above rule limits the image width to 100%, relative to the normal content width, negating the purpose of align-wide and align-full.

There are two issues with this rule.

1. The image block’s class attribute is usually something like  
`class="wp-block-image alignfull ..."`  
So the class attribute doesn’t start with “align” but contains it anywhere in the space separated list of classes. The ^= pattern doesn’t catch this correctly.  
Instead, the rule should use something like `[class*="align"]`, or even more specific `:not(.alignwide,.alignfull)`

2. The second selector of the rule is missing the align-exclusion completely.  
It should read something like  
`.wp-block-image:not(.wp-block-gallery .wp-block-image):not(.alignwide,.alignfull)`

* * *

Notes aside:  
My theme style defines

- General \> Site Layout: Wide
- Elements \> Container \> Width: 1100px

---

<div class="post-metadata">

**Author:** ![MattHias](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matthias/32/34256_2.png) [@MattHias](https://forum.bricksbuilder.io/u/MattHias)\
**Post date:** [October 14, 2025, 11:30am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/3 "2025-10-14T11:30:36Z")

</div>

Another issue:  
For .alignwide blocks, there’s a rule

```auto
.alignwide {
    margin-left: -10%;
    max-width: 120%;
    position: relative;
    width: 120%;
}

```

For Image blocks, there’s a rule

```auto
.wp-block-image, .wp-block-video, figure[class^="wp-block-"] {
    margin: 1em 0;
}

```

This kills the margin-left:-10% set by the first rule for alignwide blocks, moving the image block to the right.

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [October 30, 2025, 9:03am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/4 "2025-10-30T09:03:44Z")

</div>

Hi matthias,  
Thanks so much for your report and sorry for the late reply!

I reproduced the issues and added them to our bug tracker.

Best regards,  
timmse

---

<div class="post-metadata">

**Author:** ![ThD](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/t/3da27b/32.png) [@ThD](https://forum.bricksbuilder.io/u/ThD)\
**Post date:** [May 18, 2026, 5:19am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/5 "2026-05-18T05:19:47Z")

</div>

Hello Sir,

I’m following the state of this issue since October. Do you have an update planned about that ?Best regards,

---

<div class="post-metadata">

**Author:** ![timmse](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/timmse/32/1192_2.png) [@timmse](https://forum.bricksbuilder.io/u/timmse)\
**Post date:** [May 18, 2026, 6:30am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/6 "2026-05-18T06:30:54Z")

</div>

Unfortunately, no news yet—we’re still working on it.

---

<div class="post-metadata">

**Author:** ![MattHias](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matthias/32/34256_2.png) [@MattHias](https://forum.bricksbuilder.io/u/MattHias)\
**Post date:** [May 30, 2026, 11:32am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/7 "2026-05-30T11:32:32Z")

</div>

Dear team,  
this issue still exists in Bricks 2.3.6.  
I wonder why this takes so long to fix even though I’ve provided the necessary changes.  
It’s quite unfortunate that I have to override those rules in all my Bricks projects to restore basic Gutenberg functionality.

---

<div class="post-metadata">

**Author:** ![bricks.assistant](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/bricks.assistant/32/32537_2.png) [@bricks.assistant](https://forum.bricksbuilder.io/u/bricks.assistant)\
**Post date:** [June 11, 2026, 7:39am UTC](https://forum.bricksbuilder.io/t/solved-gutenberg-image-block-rule-preventing-alignwide-alignfull/36234/8 "2026-06-11T07:39:25Z")

</div>

We’ve addressed this in Bricks 2.3.7, now available as a one-click update in your WordPress Dashboard.

Please read the [changelog entry](https://bricksbuilder.io/release/bricks-2-3-7/) before updating, and let us know if you experience any issues.
