2014-10-30 65 views
1

我已經調整在T3模板我mainnav.php文件爲Joomla所以我的導航是固定在頁面的頂部。然而,我無法弄清楚如何我的徽標添加到我的固定導航的左側?如何添加標誌,以固定的導航T3模板

<!-- MAIN NAVIGATION --> 
<nav id="t3-mainnav" class="wrap navbar navbar-default t3-mainnav navbar-fixed-top navbar-collapse-fixed-top"> 
    <div class="container"> 

     <!-- Brand and toggle get grouped for better mobile display --> 
     <div class="navbar-header"> 

      <?php if ($this->getParam('navigation_collapse_enable', 1) && $this->getParam('responsive', 1)) : ?> 
       <?php $this->addScript(T3_URL.'/js/nav-collapse.js'); ?> 
       <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".t3-navbar-collapse"> 
        <i class="fa fa-bars"></i> 
       </button> 
      <?php endif ?> 

      <?php if ($this->getParam('addon_offcanvas_enable')) : ?> 
       <?php $this->loadBlock ('off-canvas') ?> 
      <?php endif ?> 

     </div> 

     <?php if ($this->getParam('navigation_collapse_enable')) : ?> 
      <div class="t3-navbar-collapse navbar-collapse collapse"></div> 
     <?php endif ?> 

     <div class="t3-navbar navbar-collapse collapse"> 
      <jdoc:include type="<?php echo $this->getParam('navigation_type', 'megamenu') ?>" name="<?php echo $this->getParam('mm_type', 'mainmenu') ?>" /> 
     </div> 

    </div> 
</nav> 
<!-- //MAIN NAVIGATION --> 

回答

0

你必須<div class="container">前加標誌的div和浮動兩個div的左邊,如:

#t3-mainnav .logo_container, 
#t3-mainnav .container { 
    float: left; 
} 

希望這有助於