I am a HTML CSS noob. I have recently created a new website using a free theme. www.worksitevr.com
The site works fine on desktop, but on a cellphone browser some parts of the browser won’t scroll. You have to press the yellow mail button on the sticky navigation to autoscroll down and then scroll back up to see the website content. That’s when you realize some parts of the content won’t scroll, some are parts of images, some text. I can’t put my finger on it. I’ve gone through loads of code and my brains turned mush.
I found a dirty piece of code which was holding the page up, after I removed it the site started working perfectly. I noticed the webpage wobbles scrolling sideways on a mobile browser, is this because I am using pixel / points as units? Should I convert them all to percentages and em’s to resolve the issue?
It moves side to side when scrolling up and down. I imagine it’s because some elements leak off the width of the page At least on a lower resolution phone. Cheers
At this stage of the game, simply removing that line will not likely help. You now have to find the problem. You should not need to hide overflow on the body element if the page is coded correctly.
Why don’t you try making the Immersive Technologies logo adapt to the narrowest width instead of overflowing the page and see if that helps? If you don’t know how to do that, just ask.
The issue with the horizontal scroll (even on desktops) is because you have not followed the first bootstrap rule about using .container (or .container-fluid) for your page. This means that the negative left and right margins on .row will drag your page outside the viewport and not into the padding that is added to the container specifically for this purpose
It is this negative margin that causes the wobble on mobile because it allows the page to scroll to see the errand content. Add a container in the right place and the issue will go away until about 460px when the design will need a little more attention if you want it to go smaller than that.
Excellent spot there PaulOB! I am going ahead and converting rows to container-fluid. I usually use the container to center content, but as you can see on the website, I wanted to use all the real estate available on the screen. Container-fluid changes things now, Thanks a bunch, cheers