html5 - How do i change the Navbar Position when Bootstrap in responsive case -


please im new bootstrap v3 , change navbar place when goes responsive want float right in same line of logo inside header

from :

logo -

navbar -

to


logo navbar

<div class="container">             <div id="content">                 <div class="row">                     <div id="header">                         <div id="logo" class="col-lg-4 col-sm-4">                             <a href="#"><img src="<?php echo base_url(); ?>public/img/logo.png" id="logo"></a>                         </div>                         <div id="client-num" class="col-lg-4 text-center">                             <h1>accueil fièrement plus de 1500 sites web!</h1>                         </div>                         <div id="tollfree" class="col-lg-4 text-right">                             <ul id="header-links" class="list-inline">                                 <li><a href="https://www.dothostia.com/client/cart.php?a=view" rel="nofollow">panier</a></li>                                 <li><a href="#" rel="nofollow">chat</a></li>                                 <li><a href="https://www.dothostia.com/client/clientarea.php" rel="nofollow">espace clients</a></li>                                 <li><a href="https://www.dothostia.com/client/pwreset.php" rel="nofollow">m.perdu</a></li>                                <li><a href="https://www.dothostia.com/client/register.php" rel="nofollow">inscription</a></li>                             </ul>                             <img class="img-rounded" src="<?php echo base_url(); ?>public/img/tollfree.png" alt="">                         </div>                     </div>                 </div>                 <div class="clearfix"></div>                 <nav class="navbar navbar-default" id="navigation">                     <div class="container-fluid">                         <!-- brand , toggle grouped better mobile display -->                         <div class="navbar-header">                             <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">                                 <span class="sr-only">toggle navigation</span>                                 <span class="icon-bar"></span>                                 <span class="icon-bar"></span>                                 <span class="icon-bar"></span>                             </button>                         </div>                          <!-- collect nav links, forms, , other content toggling -->                         <div class="collapse text-center navbar-collapse" id="bs-example-navbar-collapse-1">                             <ul class="nav navbar-nav pull-right" id="navbar">                                 <li><a href="#">hébergement mutualisé</a></li>                                 <li><a href="#">hébergement revendeur</a></li>                                 <li><a href="#">nom de domaine</a></li>                                 <li><a href="#">certificats ssl</a></li>                                 <li><a href="#">serveurs vps</a></li>                                 <li><a href="#" class="noborder">serveurs dédiés</a></li>                             </ul>                         </div><!-- /.navbar-collapse -->                     </div><!-- /.container-fluid -->                 </nav>                 <img alt="dothotstia" class="img-responsive" src="https://www.dothostia.com/public/img/home21.jpg">             </div>         </div> 

thank

add logo visible-xs navbar-header

 <a class="navbar-brand visible-xs" href="#">       <img alt="brand" src="img/logo.png">  </a> 

this make logo appear when menu collapses button. might need add css size logo correctly (or better add smaller / lower-res version of logo , link that)

you need add hidden-xs existing logo hidden @ same time.

<div id="logo" class="col-lg-4 col-sm-4 hidden-xs">     <a href="#"><img src="img/logo.png" id="logo"></a> </div> 

full code

<div class="container">     <div id="content">         <div class="row">             <div id="header">                 <div id="logo" class="col-lg-4 col-sm-4 hidden-xs">                     <a href="#"><img src="<?php echo base_url(); ?>public/img/logo.png" id="logo"></a>                 </div>                 <div id="client-num" class="col-lg-4 text-center">                     <h1>accueil fièrement plus de 1500 sites web!</h1>                 </div>                 <div id="tollfree" class="col-lg-4 text-right">                     <ul id="header-links" class="list-inline">                         <li><a href="https://www.dothostia.com/client/cart.php?a=view" rel="nofollow">panier</a></li>                         <li><a href="#" rel="nofollow">chat</a></li>                         <li><a href="https://www.dothostia.com/client/clientarea.php" rel="nofollow">espace clients</a></li>                         <li><a href="https://www.dothostia.com/client/pwreset.php" rel="nofollow">m.perdu</a></li>                         <li><a href="https://www.dothostia.com/client/register.php" rel="nofollow">inscription</a></li>                     </ul>                     <img class="img-rounded" src="<?php echo base_url(); ?>public/img/tollfree.png" alt="">                 </div>             </div>         </div>         <div class="clearfix"></div>         <nav class="navbar navbar-default" id="navigation">             <div class="container-fluid">                 <!-- brand , toggle grouped better mobile display -->                 <div class="navbar-header">                     <a class="navbar-brand visible-xs" href="#">                         <img alt="brand" src="<?php echo base_url(); ?>public/img/logo.png">                     </a>                     <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">                         <span class="sr-only">toggle navigation</span>                         <span class="icon-bar"></span>                         <span class="icon-bar"></span>                         <span class="icon-bar"></span>                     </button>                 </div>                  <!-- collect nav links, forms, , other content toggling -->                 <div class="collapse text-center navbar-collapse" id="bs-example-navbar-collapse-1">                     <ul class="nav navbar-nav pull-right" id="navbar">                         <li><a href="#">hébergement mutualisé</a></li>                         <li><a href="#">hébergement revendeur</a></li>                         <li><a href="#">nom de domaine</a></li>                         <li><a href="#">certificats ssl</a></li>                         <li><a href="#">serveurs vps</a></li>                         <li><a href="#" class="noborder">serveurs dédiés</a></li>                     </ul>                 </div><!-- /.navbar-collapse -->             </div><!-- /.container-fluid -->         </nav>         <img alt="dothotstia" class="img-responsive" src="https://www.dothostia.com/public/img/home21.jpg">     </div> </div> 

Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -