I am having an issue with my responsive stylesheet with Twitter Bootstrap. The site shows up fine with no issues but for whatever reason the responsive tablet and phone have this huge white gap to the right of the page. Its not the scroll bar issue its a huge white gap
http://i.imgur.com/JeRRRqq.png
I dont believe I have changed to much at all here. Nothing with width or anything. Inspected the objects in Chrome and couldnt see anything overflowing over width wise
I had a very similar issue recently which took me quite sometime to figure out. For me, it was not the usual row/container issue. I was using a
form-control
to render checkboxes manually. In Bootstrap, all textual elements withform-control
havewidth:100%
by default. Having many checkboxes online was causing them to spill over (invisibly) and causing this large white gap on the right. Surprisingly, it wasn't easy to debug this using Chrome Dev tools either.I am now using the following solution to set the
width
toauto;
(this answer helped):<input class="form-control form-control-inline" type="checkbox"
... ... ../>
and
Hope it helps someone
Generally this happens because you have a div breaking the boundaries of your set container width,could be a div or sections padding, margin, positioning.. you can use the inspector arrow or overflow:hidden on the container tag to see what section you might have breaking the width.
Also, check to see how you're using containers. They can't be nested, they will cause problems.
Source: http://getbootstrap.com/css/#overview-container
This might be a little late but I found the other answers to be misleading.
It is true that the row class is what is causing the issue, but that is because it is always supposed to be placed inside a container element.
from http://getbootstrap.com/css/ :
The container element usually has a -15px padding on both right and left and the row class has a 15px padding on right and left. The two cancel each other out. If one of the two is not present you will see extra space.
I am having the same problem. I discovered the object that was causing the padding to be created was Bootstrap's "row" class.
If you add
to your CSS file/row objects this should fix at least one of items causing padding on your page.
Add the following meta tag to your HTML
Also try setting
on the html and body