[Resolved] Mobile View shifting to left and right

Home Forums Support Mobile View shifting to left and right

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1349245
    Quentin

    Hi there,

    it seems I am facing a slight problem. When changing to mobile view my page can be moved to the left and the right. On Desktop there are two sections side by side in one row and both have a margin of 15px (top bottom and left right). On mobile these will be on top of each other. I assume the problem might be because of some margin stuff. I played a bit around but nothing worked. Any idea how to fix it?

    I am using this kind of set up on several pages but this problem appears just on certain pages (follow provided link) and I do not see a difference in the set up process.

    Thank you very much in advance

    Quentin

    #1349306
    David
    Staff
    Customer Support

    Hi there,

    your site is built with Elementor – so the problem will be related to that content. It generally happens when either:

    1. There are multiple nested elements with padding
    2. Negative margins are used.

    Ideally you would inspect each element to find which is causing the problem.

    But the quick fix is to add this CSS to your site:

    html, body {
        overflow-x: hidden;
    }
    #1349326
    Quentin

    Hi David,

    just one word — awesome .. it works ..

    Thank you very very much .. such a piece of CSS code could make such a huge difference .. haha

    Quentin

    #1349340
    David
    Staff
    Customer Support
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.