css - Bootstrap 3.1.1 navbar collapse button is not positioned correctly -


i using bootstrap v 3.1.1 , have customised state @ want navbar collapse using customisation page provided bootstrap.

however having issues collapsed button not positioned correctly until shrink page below tablet screen size.

screenshot of positioning issue collapse button

i have customised @grid-float-breakpoint less variable @screen-md-min cause navbar collapse @ correct screen size, until shrink window passed tablet screen size (@screen-sm-min) button has positioning problems.

less customisation showing collapse break point

am missing further variable customisation?

after investigating little figured out css customisation fine, fact had wrapped navbar in div using class="container" centre it, had used same class within navbar...

<div class="container"> <!-- <<< wrapping container div -->     <nav class="navbar navbar-inverse" role="navigation">         <div class="container"> <!-- <<< root cause of positioning issue -->             <!-- brand , toggle grouped better mobile display -->             <div class="navbar-header"> 

the fix simple, changed div inside navbar use class="container-fluid" instead, allowed correctly fit wrapping divs width...

<div class="container"> <!-- <<< wrapping container div -->     <nav class="navbar navbar-inverse" role="navigation">         <div class="container-fluid"> <!-- <<< here fix -->             <!-- brand , toggle grouped better mobile display -->             <div class="navbar-header"> 

check this working fiddle full fixed example.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -