PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 30, 2022

[FIXED] Body on Mobile moving around

 January 30, 2022     css, elementor, wordpress     No comments   

Issue

I am having issues with SOME of the Pages on phone view. It seems like the body is moving side to side. There is no scroll bar but you can move it around with your finger. The Home Page, and some other Pages are not currently doing this.

I'm using Elementor, over OnePress Thema.

I tried with:

html,
body {
    overflow-x: hidden;
}

but then blocks some other block-elements :(

Ive had this issue for a while and never found a solution.

Best regards and thank you!


Solution

You should find elements which are doing this issue. My way to find buggy DOM is deleting "containers" one by one and check if x-axis scrolling is still possible.

When you find these elements you should try edit their styles.

For example boxes with padding and percentage width can do it, if they doesnt have box-sizing: border-box property



Answered By - Veter
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing