Need help with margins fo containers


I need help with container margins. I have added a margin on the right and on the left, but the margin only displays on the left. What am I doing wrong ?

This is the structure that I have:

This is the value that I have as margin:

But when displaying in mobile, I only have the left margin:

Thanks for your help.

Looks to me like your container is too wide and hence overshoots the right border.

What is the width setting of the container?

Thanks for your answer.

The div has a min size of 200

the container also just have a max size and relative (100%) size:

Best regards,


what happens when you change the container max width to 100% instead of 1140 in the mobile view point?

Thanks for your help. I found my mistake: I did not take into account margins in the overall width calculations.