title: Logo placement overlapping // Joomla Bootstrap
body: <p>On my <a href="http://www.lyzarr.com/testsite/" rel="nofollow">Joomla 3.x Bootstrap site</a> I want to have a logo placed overlapping the navbar and slideshow like that:</p>
  
  <p><a href="http://www.lyzarr.com/stuff/testsite.jpg" rel="nofollow">screenshot</a></p>
  
  <p>The navbar is "fixed-top" and the slideshow is placed outside any other container in order to being displayed in full width.
  To make matters even more complicated, the logo should be fix on top while scrolling just like the navbar.
  But on a mobile it should move up (again, like the navbar) and be even replaced by another (smaller) image.</p>
  
  <p>How could this be achieved?</p>
  
  <p>The logo links to home, which right now is done by putting both a href and the logo image itself in the index.php.</p>
  
  <p>To change the image easily according to the viewport I'd have to do it in the css. But then how to link to home?</p>
  
  <p>Please help me on getting the placement of the logo image (responsive) correctly.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.logo-wrapper {
   position: relative;
   z-index:1;
  } 
   
  .toplogo {
     position:absolute;
     width:auto;
     height:auto;
     z-index:10;
     left: 0px;
     top: 0px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body id="&lt;?php echo ($itemid ? 'itemid-' . $itemid : ''); ?&gt;"&gt;
  
         &lt;div id="toplogo"&gt;
      &lt;a href="&lt;?php echo $root = JURI::root();?&gt;" onfocus="blur()"&gt;
      &lt;img src="&lt;?php echo $this-&gt;baseurl ?&gt;/templates/&lt;?php echo $this-&gt;template ?&gt;/images/logo-test.png" title="Zur Startseite" alt="&lt;?php echo $root = JURI::root();?&gt;" border="0"/&gt;
      &lt;/a&gt;
      &lt;/div&gt;  
    
      &lt;!-- Begin Navbar--&gt;
      &lt;?php if ($this-&gt;countModules('position-9')): ?&gt;
        &lt;div class="navbar navbar-inverse navbar-fixed-top"&gt;
        &lt;!-- navbar-inverse navbar-fixed-top --&gt;
          &lt;div class="navbar-inner"&gt;
            &lt;div class="container"&gt;
              &lt;a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
                &lt;span class="icon-bar"&gt;&lt;/span&gt;
              &lt;/a&gt;          
              &lt;!--&lt;a class="brand" href="#"&gt;&lt;?php echo $sitename ?&gt;&lt;/a&gt;--&gt;
              &lt;div class="nav-collapse collapse"&gt;
                &lt;jdoc:include type="modules" name="position-9" style="none" /&gt;
              &lt;/div&gt;
            &lt;/div&gt;
          &lt;/div&gt;
        &lt;/div&gt;&lt;!--End navbar--&gt;
        &lt;?php endif; ?&gt;
    
          &lt;?php if ($this-&gt;countModules('position-5')): ?&gt;
      &lt;div class="bigimage"&gt;
       &lt;jdoc:include type="modules" name="position-5" style="none" /&gt;
       &lt;div class="clearfix"&gt;&lt;/div&gt;
      &lt;/div&gt;&lt;!--End Bigimage--&gt;        
      &lt;?php endif; ?&gt;
  
   &lt;div class="container"&gt;
      
    &lt;!-- Begin Header--&gt;
    &lt;div class="header"&gt;
     &lt;div class="header-inner"&gt;​</code></pre>
  </div>
  </div>
  </p>