html - Why is navbar breaking in when i re-size the browser -
i have logo , account name
in navbar
works fine in desktop , larger devices. moment when re-size tablet or mobile resolution, breaks.
<div class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container-fluid"> <div class="row"> <div class="col-sm-6 col-md-4 col-xs-6 col-lg-4"> <div class="navbar-header"> <ul class="nav navbar-nav"> <li><a class="navbar-brand" href="#">something</a></li> <li class="divider-vertical"></li> <li><h4 style="margin-top: 15px">acme - new york</h4></li> </ul> </div> </div> </div> </div>
below jsbin have been working. why accountname/logo come down when resize?.
because set 50percent width , that's all. set fixed width or min-width if want. example min-width: 420px;
Comments
Post a Comment