NO BUG: I wonder whether this is a bug

Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)

Hey I’m new to bricks and I’m learning to use it.

I want to know why the container’s width is not the same as the one on the frontend?

For example, I dragged a container with the width defaulted “1100px”, with the section background colored black and container background colored purple.

But on the frontend, I use the tool to measure the container’s width, it shows around 1375px, is this a bug or I make something wrong?

Hello @Mezzy,

I can’t replicate the issue locally. It should be the same in the backend and in the frontend. Do you have a link to the website, where I can see this container?
Maybe you have some other CSS, that overrides your container width?

Best regards,
Matej

1 Like

Hi @Matej , I made a test part on my homepage, https://yumonn-electric.com/

I measure the whole screen, the data is a little blurred, but it is indeed around 1920px

Hello,

as far as I see, the container is exactly 1100px wide. How do you measure it?

Best regards,
Matej

@Matej Hello Matej, I use the screenshot function of my chatting software from China.

as you can see, if I check the website by developer view on my desktop, it’s indeed 1100px width, but if I use other tool to measure, it seems different.

@Matej

Here is the thing, in my previous building experience, I always set the content width of 1600px,

This time ,If I set the element-container width from 1100px to 1600px, as you can see the from the screenshot above, the container is 100% width, around 1920px. why does it happen, do I set something wrong?

Hi @Mezzy,

I’ll mark this topic as no-bug, as it’s not a bug :slight_smile: The value that developer tools are showing is the correct one.

From the screenshot that you posted above, we can see that your screen size is actually 1536px, and not 1920px - unless there is something on the sides that I don’t see.

So, when you set it to 1600px, the width would be 1536px, as that’s 100% of the screen - which is set by default, to not cause overflow.

I believe that if you measure the width of the screen with developer tools, it will not be 1920, like you indicated.

My guess, why is this confusing, is because different devices, with different settings, has different Pixel Density. One CSS Pixel is not always equal to 1 device pixel. If you check the linked article, you see what I mean.

Same would apply if you zoom the website or have some scaling set up in the OS settings.

I hope it’s understandable :slight_smile:
Matej

Hi @Matej, I’ve found the culprit! The laptop I’m using has its default Scaling and Layout set to 125%, which caused the discrepancy in the resolution. After adjusting it back to 100%, the issue was resolved.

Thanks for your help! :blush:

Hi @Mezzy,

yep, that’s it :slight_smile: Just keep in mind that once you turn scaling to 100%, all will look smaller, depending on the screen size.

I always had it set up to 125% on my old display :slight_smile:

Best regards,
Matej