Not a big issue for me personally, just wanted to report it.
Edit: I first thought the issue only happened when the header was left or right aligned but then I realised that the same thing happened when the header was not there so I made an edit the post to also include that use case as well.
thanks a lot for your report! I think the margin works but interferes with the “fixed” width of the container. To make it work properly, you have to calculate the width of the container subtracted by the margins on both sides (using the calc function for example).
Unfortunately, this is one of the disadvantages that our container layout has. Margin, unlike padding, is always added to the width - and I think that’s the basic problem.
Ah you’re probably right about that. A more accurate description of the issue might be “Unexpected width of root container and page when adding margins”. The expected behaviour as a user, for me at least, would be that it would adjust the width because it shouldn’t add margins so it pushes the content past the viewports width.
Thanks for the suggested solution!
For anyone looking at this thread the solution to this issue atm is:
Step 1: Make sure Content > “Align container” option of your container is not set to anything. Step 2: Go to Style > Code > Custom CSS and write
root {
width: calc(100% - 2em);
}
Where 2em is the sum of the right and left margin of my example above. So change that part for the margins you have chosen.