Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

page width in bootstrap responsive design on iphone

I have a bootstrap responsive design working well on a wide range of browsers, but the page width is limited on iPhone. I have already added the viewport meta tag:

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

And it does not seem to help. The site is here: http://themenuengine.com. Any advice would be much appreciated!

like image 404
ForrestLyman Avatar asked Nov 07 '12 20:11

ForrestLyman


1 Answers

Around line 780 of bootstrap-responsive.css:

@media (max-width: 767px) {
  body {
    padding-right: 20px;
    padding-left: 20px;
  }

Override that padding with 0 and it will be full-width.

For example:

@media (max-width: 767px) {
  body {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}
like image 132
Sara Avatar answered Nov 12 '22 22:11

Sara