I have devolopped a responsive website with Twitter Bootstrap 3. However i have noticed that there is a scroll bar at the bottom of my screen due to a right space on the page. Even though i used
body {
margin:0px;
margin-top:0px;
padding:0; margin:0;
margin-right: 0;
}
I still have a right space and a scroll bar under my page as shown in the picture below
Please How to remove the right space from a bootstrap built website ?
2
Answers
i looked in to it what i think is, its the navigation bar which is causing it.
try reducing the px for nav bar. look at the picture , reduce the px from 1903 to 1980 may be !! let me know what happens
First of all, elements with classes
articles_text2
andarticles_text4
aren’t placed properly, they create some extra space on the right. For example, you can set themleft: 50%;
. However, I’d suggest that you re-define positions for allarticles_text
elements because values like57%
and other look like some magic numbers taken from nowhere.Secondly, you should remove
padding: 0;
from#full-width
because it breaks Bootstrap Grid System. What I can suggest in order to remove left and right padding is to do the following trick:It should help.