What is making this horizontal scroll bar pop up? - css

I've got a one page site that I'm building for myself and I've got a small but annoying (to me) bug.
I'm working on making it media query friendly, and so far what I'm learning is coming together ok. What's bugging me is that when the site is being resized horizontally, there's a part where the horizontal scroll bar flashes up.
You can see where in the screenshot. It's around the width of 767px.
I think it might be coming from the 1140.css file, the framework I'm using to make it responsive, but I can't figure out what's causing it or how to fix it.
You can check my site out:
http://vitaliyg.com

From giving it a blast in Chrome it looks like it is due to
media="screen" 1140.css:10
.container {
padding-left: 20px;
padding-right: 20px;
}
If these are both turned off the scroll bar doesn't appear.. for me at least.

Related

Firefox not getting FullScreen using userChrome.css file

1) Above attached is my Firefox screenshot. I have modified my userchrome.css file to get rid of the tabs but now Firefox has a big empty gap at the bottom. I am unable to get rid of it. I tried everything.
2) Also, how do I shrink my navigation bar to the right so that my tree Style tab occupies the whole left side.
Here is what I have tried so far:
#main-window[sizemode="maximized"] #titlebar {margin-bottom: -34px !important; }
#main-window[sizemode="maximized"] #nav-bar {margin-right: 138px; }
The -34px worked in expanding my main window but without the outside frame so it ended up hiding the bottom part of the window. I think there should be another "Frame-window" or something?
I am really surprised that no one has asked a question like this; I mean almost anyone who uses Tree Style Tabs add-on is bound to face this issue and that addon has like more than a million users.
OK, thanks to Micha, I was able to partially solve the first problem.
here is the link with screenshots and an explaination:
https://github.com/LucKy-4U/Firefox-Chrome-Folder
Still, if someone knows how to do it without using my stupid trick then please let me know as my trick is partially broken.

Why does mobile site scroll left to lots of white space?

Having a hard time figuring out why my website scrolls way left in the mobile version!
I have checked all of my widths and even tried some suggestion on here but the site still scrolls to the right of the screen! Made sure common viewport code is in the head tag but to no avail. This is a WordPress site based on the twentysixteen theme
There should be no scrolling left or right on the mobile version of my site.
I've been debugging other css issues and this problem is becoming a major headache. Any clue as to what may be causing this width issue with the mobile css?
https://phoenixim.com/liveinhomecare/
CSS Style Sheet
https://phoenixim.com/liveinhomecare/wp-content/themes/twentysixteen/style.css?ver=5.2.2
Your problem comes from:
.banner {
margin: 0 -600rem;
padding: 0.25rem 600rem;
}
This code tries to break out of the container using the negative margin/padding trick. To fix this, try:
#main {
overflow: hidden;
}

Footer is Overlapping an element, Quick Solution to auto push it down?

I apologize ahead of time, I am not a skilled web designer at all, and I did do some googling before asking this, but it was complicated as most solutions require creating new divs and stuff, I was hoping there is a simple mod or line I could just add to the existing code for the footer to solve this?
Here is the site: http://ratecitident.com/ See how the black footer is overlapping the ratings box, how can I prevent this, to keep the footer at the base on any size screen? it may not show the problem on your screen, but it does on certain sizes, and on phones.
This is how it looks like on my desktop screen: http://gyazo.com/112b627bb056fc0bc6eb48070939d9b7
Thanks
You can simply add this little bit of code to your CSS:
div#content {
margin-bottom: 20px;
}
This is gonna give you more spacing,because you are forcing the footer to bottom of the content div to 20px.
You can always,target a specific screen using media queries,in this case you must target the iPhone screen,here is some good tutorials about the media queries.
css-tricks.com's tutorial
mozilla developer network's tutorial

Bootstrap Body Overflow - Using overflow-x creates mobile scrolling issues

I've more or less finished a simple bootstrap site for a client, however I ran into an issue where the body element seems to have an extra 160px on the right side! I've spent like 3 hours already trying to find an answer.
To partially solve this problem I added the below css to the head:
html, body { overflow-x: hidden;}
This got rid of the extra 160px however on mobile devices (only tested iOS) the scrolling action is now incredibly sticky - rather than the fluid scroll we expect on a mobile device. Instead of one fast flick of the finger making the page continue scrolling, now when the finger leaves the screen the page stops dead.
In terms of user experience this isn't really acceptable and has been a real pain to try and solve.
I've put the site here for you to try on a mobile to feel the 'stickyness' goo.gl/yEI3rn
On desktop you can use inspector to disable the overflow-x:hidden; on the body to see the extra pixels on the right.
If anyone can investigate the site and tell me any one of the following it would be very useful:
Which element in the body is causing the body to have the extra width?
Why the body element has the excess width?
Is there an alternative to overflow-x that will not create mobile scrolling issues?
Any other areas to investigate to try and solve this issue?
Thanks so much for any insight here!
you can try adding this to your css to see which element goes all the way:
* {
outline: 1px solid right;
}

My mobile website is getting horizontal scroll

Im makin' a mobile website for a friend - and im using media queries to adjust her website for a more mobile feeling when watching it on any smartphone.
Feels like im done with the webpage - but when i view it on my phones iphone 3gs and htc incredbile S its like that you can scroll 2-3 pixels horizontally.
Some element is messing with this and im growing gray hair since i can't really find out which it is.
how do i solve this?
webpage link
http://www.linaahlen.se/
Had a quick look with the inspector in Chrome and it looks like it's this property:
div.entry {
padding: 0em 1em;
}
Line 106 of style-responsive.css - it's pushing the content just a few pixels wide, changing it to be padding: 0 0.8em; worked for me.
Oh, and just for the record, it's scrolling horizontally, not vertically!
Late, but for future reference.
I would like to point out the way to go searching the cause for the problem.
Open the site using Google Chrome Device Mode. Then check to see that the problem exists there (this solution relies on the problem to show up in the Device mode). Then start setting "display: none" to the elements one by one starting from larger elements like header, content container and check after hiding each element if the unwanted scrollability has dissapeared. This way you can track down the cause of the problem.
I had the same problem and tried to identify the cause at first by looking at the CSS code of every single element, wasted a lot of time and didn't find the cause. Probably a browser can render a page better that a human reading CSS...

Resources