Hello,
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.
Philippe
Looks to me like your container is too wide and hence overshoots the right border.
What is the width setting of the container?
pburki
May 28, 2023, 10:20am
3
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,
Philippe
Patric
May 28, 2023, 10:37am
4
Hi
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.