title: Positioning absolute div within parent div
body: <p>just need some help here for my css layout..here my attempt so far are shown below..</p>
  
  <p><a href="https://i.stack.imgur.com/V3FcO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/V3FcO.png" alt="enter image description here"></a></p>
  
  <p>As my desire goal is want to positioning the float button just bottom of the background image...as shown belown..</p>
  
  <p><a href="https://i.stack.imgur.com/jGGO4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jGGO4.jpg" alt="enter image description here"></a></p>
  
  <p>and here are the html and my css so far</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.bg-image {
    position: relative;
  }
  .bg-image img {
    display: block;
    width: 100%;
    max-width: 1200px;
    /* corresponds to max height of 450px */
    margin: 0 auto;
  }
  .bg-image button {
    position: absolute;
    bottom: 5px;
    right: 4px;
    color: #FFF;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="http://code.jquery.com/jquery-1.11.1.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"&gt;&lt;/script&gt;
  &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"&gt;
  
  &lt;div data-role="content" id="content"&gt;
    &lt;div class="row"&gt;
      &lt;div class='col-xs-12'&gt;
        &lt;div class="bg-image" style="background-color:#CFD8DC;"&gt;
          &lt;img id="imgupload" src="//dummyimage.com/1000x200" /&gt;
          &lt;button class="ui-btn ui-btn-inline ui-btn-fab ui-btn-raised clr-warning"&gt;&lt;i class="zmdi zmdi-camera zmd-2x"&gt;&lt;/i&gt;
          &lt;/button&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>