html - Why is my bootstrap navbar elements shrinking down on sm and xs size -


so have been trying fix issue last 3 hours can't figure out why elements shrinking down on small size.

i tried many stuff.

objective: avoid collapse of navbar hence trying customize it. want few itesm dissappear on small size. , have not other effect. shifting of element ugly thing , need in stop behavior

edit: 1 thing found out there problem navbar-header.

here fiddle link: https://jsfiddle.net/lhw3rdvg/1/...

html

.navbar-inverse.nav-top {      height: 37px;  }  .navbar-inverse.nav-top ul {      float:right !important;      display:table;  }    .navbar-inverse.nav-top .navbar-top >li{      display:table-cell;      font-size: 14px;  }    .navbar-inverse.nav-top .navbar-top >li >a{      display:table-cell;      font-size: 14px;      padding:5px 10px;      line-height: 12px;  }  /**********************************/  .navbar-collapse.collapse {      display: block!important;  }    .navbar-nav>li, .navbar-nav {      float: left !important;  }      .navbar-nav.navbar-right:last-child {      margin-right: -15px !important;  }    .navbar-right {      float: right!important;  }  .navbar-header{      margin-right: 0 !important;      margin-left: 0 !important;  }  .navbar-nav {      margin:0 !important;  }      .navbar-header img{      border: 8px solid #0d161a;      border-radius: 8px;      position: absolute;      top: 15px;      left: 45px;      z-index: 1000;      height: 96px;      width:96px;  }  .navbar-header .social-header{      width: 30px;  }    .ht60{      height:60px;  }  .lft30{      margin-left:30px;  }  .jc{      height: 32px;      width:auto;  }  .navbar-main  {      position: absolute;      width: 100%;      left: 0;      text-align: center;      margin:0 auto;      padding-top: 10px;  }
<nav class="navbar-inverse nav-top">      <div class="container-fluid">          <ul class="nav navbar-nav navbar-top">              <li class="active"><a href="#">english <span class="sr-only">(current)</span></a></li>              <li class="active"><a href="#"><i class="fa  fa-chevron-circle-down"></i></a></li>          </ul>        </div>    </nav>    <nav class="navbar-inverse navbar-default">      <div class="container-fluid ht60 ">          <!-- brand , toggle grouped better mobile display -->          <div class="navbar-header">              <div class="social-header visible-lg-block visible-md-block visible-sm-block">                  <a class="facebook" href="#"><i class="fa fa-2x fa-facebook-square "></i></a>                    <a class="youtube" href="#"><i class="fa fa-2x fa-youtube-square"></i></a>                </div>              <a class="navbar-brand" href="#"><img src="../images/jj.png" /></a>          </div>            <!-- collect nav links, forms, , other content toggling -->                  <ul class="nav navbar-nav droping">                    <li class="dropdown lft30">                      <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">my first page<span class="caret"></span></a>                      <ul class="dropdown-menu">                          <li><a href="#">action</a></li>                          <li><a href="#">another action</a></li>                          <li><a href="#">something else here</a></li>                          <li role="separator" class="divider"></li>                          <li><a href="#">separated link</a></li>                          <li role="separator" class="divider"></li>                          <li><a href="#">one more separated link</a></li>                      </ul>                  </li>              </ul>           <!--   <form class="navbar-form navbar-left">                  <div class="form-group">                      <input type="text" class="form-control" placeholder="search">                  </div>                  <button type="submit" class="btn btn-default">submit</button>              </form>-->              <ul class="nav navbar-nav navbar-right">                  <li class="active"><a href="#">contact us</a></li>                </ul>          <!-- /.navbar-collapse -->      </div><!-- /.container-fluid -->  </nav>


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -