Bug report in the website horizontal alignment when using grid or simple containers, version 3

Hi elements team. Since I updated to version 3.1.2 I have noticed a bug in the horizontal alignment of the website pages. Even with a very simple and similar component configuration on the pages, the horizontal alignment runs more to the right or left on some pages. To try to find out the problem I built the skeleton of a simple website from scratch, only with a standard menu at the top, a parent container and child containers with images that I imported (all with the same size and proportion) and text placeholders generated by the program itself. In addition to the home page, I created two more pages with the same structure, and in one of them I put inside the child container a grid component with two columns and placeholder text automatically generated by the elements. The sizing and spacing options for Containers are all the same. Even so, when testing the website in the Chrome and DuckDuckGo browsers, when I change from one page to another through the menu, the website horizontal alignment goes right and left. Why is the website moving to the side like this? This is not only on this website, it happens on others as well, even with simple text. Could this be a bug? Thank you.

Hi @chromi

Thanks for the detailed report. Can you share that demo project file you created via Elements Cloud so we can take a look?

Hi Daniel, for sure. Here is the link to the project elementsapp://downloadDocument/zmstDunAm91b

Hi everyone, were you able to access the project file? I’m looking forward to hearing if anyone has any suggestions on how to solve this problem. Thanks.

I couldn’t reproduce the issue with your project on my end.

I tested it in both Vivaldi and Safari, and in neither browser did I notice any horizontal shifting when switching between pages.

I’ve tried to reproduce it here, but I can’t see the issue:

I’m wondering if it’s to do with your scrollbars, i.e. the scrollbars appear on longer pages so it shifts your content over… what Mac are you testing this on, and what mouse are you using?

Hi everyone, thanks for the help. Dan, it looks like you’re right about the scrollbars. The issue only occurs on pages that contain content requiring a scrollbar. I noted that when I access the pages with scroolbar in the browser, the alignment of the entire page shifts to the left. The menu page 1 of the example project I did has more content and can show the issue when a scrollbar appears (tested in a 2K monitor). I’m testing this on a 2025 Mac Studio running Sequoia 15.8.1, using the Google Chrome browser, a Logitech MX Ergo Vertical mouse, and a Wacom Intuos M tablet. Any suggestions on how to resolve this?

Hi everyone, it looks like Dan was right. The shifting happens when a scrollbar appears on the page. I ran a test by adding an accordion with a large amount of content in one of the pages and when I open it, a scrollbar appears on the side of the browser, pushing the entire website to the left. When I close the accordion, the website returns to its original position. The entire website is configured with “auto” settings for padding and sizing. Do you have any suggestions on how to fix this, or is it unavoidable due to the browser’s scrollbar? Thanks.

I would imagine you have a non apple mouse plugged in?? if so unplug it and test