title: Relative and absolute positioning. Force a logo move to the corner
body: <p>Suppose I have such a situation:</p>
  
  <p><a href="https://i.stack.imgur.com/S2hxO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S2hxO.png" alt="enter image description here"></a></p>
  
  <p>You can see a few main parts:</p>
  
  <ul>
  <li>The panel (border red)</li>
  <li>The image</li>
  <li>The logo</li>
  <li>The title </li>
  </ul>
  
  <p>And I need this setup:</p>
  
  <p><a href="https://i.stack.imgur.com/DBNYO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DBNYO.png" alt="enter image description here"></a></p>
  
  <p>So the logo needs to get up. Usually, every time I try to make the image <code>absolute</code> and the logo <code>relative</code>, then float it to right it works, but I loose the title which also goes under the image.</p>
  
  <p>And I can't make the title relative and push it from top with some value, because the image is responsive and changes it's <code>height</code>.</p>
  
  <p>Here is the code I'm using.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"&gt;
      &lt;style&gt;
          .body {
              width: 100%;
          }
  
          .panel {
              border: 1px solid red;
              background-color: blue;
              margin: 50px;
          }
          img {
              width: 100%;
          }
  
          .logo {
              background-color: red;
              border: 1px solid yellow;
              width: 100px;
  
          }
      &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      &lt;div class="panel"&gt;
          &lt;img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTVxPtnNvc1ZwknRSdJZIPjrmUHitXdUU_-TT3wuIF-mWND6sXV" class="img-responsive" alt="picture nature"&gt;
          &lt;div class="logo"&gt;
              I'm a logo
          &lt;/div&gt;
          &lt;h1&gt;I'm a title, hello&lt;/h1&gt;
      &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>