# B29 - Right Container Margin Not Adjusting

**URL:** <https://forums.realmacsoftware.com/t/b29-right-container-margin-not-adjusting/45730>\
**Category:** Elements\
**Created:** [December 25, 2024, 2:41pm UTC](https://forums.realmacsoftware.com/t/b29-right-container-margin-not-adjusting/45730 "2024-12-25T14:41:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![IdahoSAM](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/idahosam/32/15242_2.png) [@IdahoSAM](https://forums.realmacsoftware.com/u/IdahoSAM)\
**Post date:** [December 25, 2024, 2:41pm UTC](https://forums.realmacsoftware.com/t/b29-right-container-margin-not-adjusting/45730/1 "2024-12-25T14:41:08Z")

</div>

When adjusting the margins of a container element, the right margin does not show correctly. I may be doing something incorrectly.

 ![Screenshot 2024-12-25 at 7.35.02 AM](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/4/b/4b8edaead879652d1f5471d407c8a2d8ed761fbd.jpeg)

---

<div class="post-metadata">

**Author:** ![sbchasin](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/sbchasin/32/26943_2.png) [@sbchasin](https://forums.realmacsoftware.com/u/sbchasin)\
**Post date:** [December 25, 2024, 10:11pm UTC](https://forums.realmacsoftware.com/t/b29-right-container-margin-not-adjusting/45730/2 "2024-12-25T22:11:52Z")

</div>

This has hit me as well…

---

<div class="post-metadata">

**Author:** ![upssjw](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/upssjw/32/26063_2.png) [@upssjw](https://forums.realmacsoftware.com/u/upssjw)\
**Post date:** [December 26, 2024, 11:08am UTC](https://forums.realmacsoftware.com/t/b29-right-container-margin-not-adjusting/45730/3 "2024-12-26T11:08:07Z")

</div>

I had this happen not sure it is related but I did screen video and Dan replied with reason, thread below

> [@Expected behaviour container](https://forums.realmacsoftware.com/t/expected-behaviour-container/45392):
>
> is this the way Container works? happens with text etc.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [December 26, 2024, 7:08pm UTC](https://forums.realmacsoftware.com/t/b29-right-container-margin-not-adjusting/45730/4 "2024-12-26T19:08:02Z")

</div>

This is “expected behaviour”.

The Container has a width of `Full`, which is 100% (in this case 100% of the viewport as it’s at the root of the page).

So in this case here’s what’s happening:

- Container’s width is 100% of the viewport
- You are adding margin to the left and right.
- The left margin moves the Container in from the left
- Because the Container is set to 100%, it runs off screen to the right due to the left margin.

This is how it is expected to work with the settings you have applied.

Don’t worry though as there’s an easy fix; change the `Sizing -> Width` option to `auto` like so:

 ![Screenshot 2024-12-26 at 20.06.11](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/1/2/12ed0cae15c3f941b7d5a35acbd743ca6fd706bd.png)

Let me know if you need more help with this 🙂
