css - bootstrap navbar not displaying correctly on tablet -



css - bootstrap navbar not displaying correctly on tablet -

i have little problem, got bootstrap navbar set up, when resize tablet width, menu escapes navbar , gets content shown here:

http://oi57.tinypic.com/2uykv9g.jpg "see problem"

is menu wide ? help how prepare appriciated.

code here:

<div class="navbar navbar-fixed-top"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="fa fa-bars color-white"></span> </button> <a class="navbar-brand" href="index.html" ><img class="img-responsive" src="images/new.jpg"></a> </div> <div class="navbar-collapse collapse"> <ul class="nav navbar-nav" > <li class="active"><a href="#section-main"><i class="fa fa-home"></i></a></li> <li><a href="#section-pakiety">packages</a></li> <li><a href="#section-works">examples of webpages</a></li> <li><a href="#section-about">our services</a></li> <li><a href="#section-korzysci">benefits</a></li> <li><a href="#section-ref">references</a></li> <li><a href="#section-contact">contact </a></li> </ul> </div><!--/.navbar-collapse --> </div> </div>

ok fixed it, in case else having problem, did scale downwards logo (which partially problem) 80% on devices smaller 992px, gave absolute positioning etc, here css:

@navbar-height: 150px; @navbar-brand-vpadding: 10px; .navbar-brand img { height: @navbar-height - @navbar-brand-vpadding * 2; position: absolute; top: @navbar-brand-vpadding; } @media (max-width: 992px) { .make-custom-class-here { width:201px; height:41px; } }

css twitter-bootstrap

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -