title: overlap buttons in div tag using css
body: <p>hello just a quick question about overlapping two buttons with a div tag, how do i do it? i tried position and margin but both do not move the buttons.</p>
  
  <p>heres the html:</p>
  
  <pre><code>&lt;div class="container-fluid"&gt;
      &lt;div style="margin:auto;"&gt;
          &lt;button type="submit" class="btn-login"&gt;Log in&lt;/button&gt;
      &lt;/div&gt;
      &lt;div class="signup-form"&gt;
      &lt;label style="text-align:center;margin-bottom:20px"&gt;Create an Account&lt;/label&gt;
  
      &lt;div&gt;
          &lt;button type="submit" class="btn-login"&gt;Sign Up Free&lt;/button&gt;
      &lt;/div&gt;
          &lt;label style="text-align:center;margin-bottom:20px;margin-top:20px"&gt;or&lt;/label&gt;
      &lt;/div&gt;
  &lt;/div&gt;
      &lt;div class="social_media"&gt;
          &lt;button type="submit" class="btn-facebook"&gt;&lt;/button&gt;
          &lt;button type="submit" class="btn-gmail"&gt;&lt;/button&gt;
      &lt;/div&gt; 
  &lt;/body&gt;
  </code></pre>
  
  <p>heres the css:</p>
  
  <pre><code>.signup-form {
      top:-40px;
      position:relative;
      box-sizing: border-box;
      margin: 25px auto;
      margin-bottom:0px;
      width: 100%;
      max-width:400px;
      background-color: white;
      padding: 50px 50px 50px 50px;
      box-shadow: 1px 5px 2px #330000;
      z-index: -1;
  }
  
  .social_media {
      text-align:center;
  }
  
  .btn-facebook {
      margin-bottom:60px;
      padding-left:30px;
      background-image: url(fb.gif);
      background-color: #3b5998;
      padding: 0px;
      border: 3px solid white;
      border-radius: 5px;
      box-shadow: 1px 2px 2px grey;
      background-size: contain;
      background-repeat: no-repeat;
      height: 70px;
      width: 70px;
      font-family: sans-serif;
      font-size: 16px;
      color: white;
  }
  
  .btn-gmail {
      margin-bottom:60px;
      top:50%;
      padding-right:30px;
      background-image: url(g+.gif);
      background-color: #dc4a38;
      padding: 0px;
      border: 3px solid white;
      border-radius: 5px;
      box-shadow: 1px 2px 2px grey;
      background-size: contain;
      background-repeat: no-repeat;
      height: 70px;
      width: 70px;
      font-family: sans-serif;
      font-size: 16px;
      color: white;
  }
  </code></pre>
  
  <p>also the first screenshot is what it looks like now and the second is from a photoshopped image on what im trying to replicate</p>
  
  <p><a href="https://i.stack.imgur.com/BX68x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BX68x.png" alt="current look"></a></p>
  
  <p><a href="https://i.stack.imgur.com/PwxYg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PwxYg.png" alt="photoshop"></a></p>