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.
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.
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
Post a Comment