responsive design - Border On Screen Size 767px and Below Bootstrap -
i'm having issue bootstrap site setup, reason when window smaller 767px there 20px padding on right , have no idea how rid of it.
heres site http://surf96.com/defaulttheme/
html:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>sticky footer · twitter bootstrap</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="author" content=""> <!-- css --> <link href="css/bootstrap.css" rel="stylesheet"> <link href="css/bootstrap-responsive.css" rel="stylesheet"> <link href="css/main.css" rel="stylesheet"> <!-- html5 shim, ie6-8 support of html5 elements --> <!--[if lt ie 9]> <script src="js/modernizr-2.6.2-respond-1.1.0.min.js"></script> <![endif]--> <!-- fav , touch icons --> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/ico/apple-touch-icon-144-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/ico/apple-touch-icon-114-precomposed.png"> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/ico/apple-touch-icon-72-precomposed.png"> <link rel="apple-touch-icon-precomposed" href="img/ico/apple-touch-icon-57-precomposed.png"> <link rel="shortcut icon" href="img/ico/favicon.png"> </head> <body> <div id="wrap"> <div class="navbar navbar-fixed-top"> <div class="navbar-inner"> <div class="container"> <a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse"><span class="icon-bar"></span> <span class="icon-bar"></span> <span class= "icon-bar"></span></a> <div class="nav-collapse"> <ul class="nav"> <li class="active"> <a href="#">menu</a> </li> <li> <a href="#">on tap</a> </li> <li> <a href="#">shows</a> </li> <li> <a href="#">surfwear</a> </li> <li> <a href="#">contact</a> </li> </ul> </div><!--/.nav-collapse --> </div><!-- container --> </div><!-- navbar-inner --> </div><!-- navbar navbar-fixed-top --> <div class="page-header"> <h1>sticky footer</h1> </div> </div><!-- begin page content --> <div class="container"> <div id="push"></div> </div> <footer> <div class="container"> <p class="muted credit">example courtesy <a href= "http://martinbean.co.uk">martin bean</a> , <a href= "http://ryanfait.com/sticky-footer/">ryan fait</a>.</p> </div> <footer> <!-- le javascript ================================================== --> <!-- placed @ end of document pages load faster --> <script src="js/vendor/jquery-1.9.1.min.js"></script> <script src="js/vendor/bootstrap.min.js"></script> </body> </html>
typical bootstrap css , sticky footer.
/* sticky footer styles -------------------------------------------------- */ html, body { height: 100%; /* html , body elements cannot have padding or margin. */ } /* wrapper page content push down footer */ #wrap { min-height: 100%; height: auto !important; height: 100%; /* negative indent footer it's height */ margin: 0 auto -60px; } /* set fixed height of footer here */ #push, footer { height: 60px; } footer { background-color: #f5f5f5; } /* lastly, apply responsive css fixes necessary */ @media (max-width: 767px) { footer { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; } } body { padding-top: 60px; } @media (max-width: 979px) { body { padding-top: 0px; } }
hope can help.
denver
if want remove space before navbar, have delete 1 of properties have set in css:
.navbar .nav, .navbar .nav > li { float: none; <-- ... }
if remove float:none
, menu aligned right.
Comments
Post a Comment