Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bootstraps 3 white space on right side mobile devices [duplicate]

I am getting a white space while scrolling to the right on a mobile device. Desktop browsing works as it should. I've tried the following things, non have worked.

css:

html, body {
  width: 100%;
  overflow-x: hidden;    <- Don't like this one, would rather have it visible
}

html:

<meta name="viewport" content="width=device-width, initial-scale=1">

Shall I just try disabling horizontal scrolling?

Tool used for testing: http://mattkersley.com/responsive/

like image 719
krizajb Avatar asked Feb 16 '14 18:02

krizajb


People also ask

How do I get rid of extra white space on mobile?

We would recommend duplicating the relevant page and delete sections until the white space disappears. When you find the section, try to disable “Stretch Section” under Layout. And make sure you don't have a fixed width on this section or underlying inner sections and elements.

How do I get rid of white space in CSS?

apply float:left and that will remove the space so the text doesn't have to be on 1 line.


1 Answers

Found out that overflow-x:hidden; works as it should if put into #intro class which wraps whole page content.

Found solution here: https://stackoverflow.com/a/14271049/410624

like image 170
krizajb Avatar answered Jan 01 '23 18:01

krizajb