Absolute positioning ignoring padding : <p>I am trying to position a div with buttons at the bottom of a parent div that has a padding.</p>

<p><a href="https://i.stack.imgur.com/pQdi9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pQdi9.png" alt="current result"></a></p>

<p>The expected result is having the button resting on top of the padding (green area).</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>.btn-default,
.btn-default:hover,
.btn-default:focus {
  color: #333;
  text-shadow: none;
  /* Prevent inheritence from `body` */
  background-color: #fff;
  border: 1px solid #fff;
}
a,
a:focus,
a:hover {
  color: #fff;
}
body {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url("../img/blank.jpg");
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}
html,
body {
  height: 100%;
}
body {
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
#mcontainer {
  position: relative;
  float: left;
  padding: 10%;
  width: 100%;
  height: 100%;
}
#header h1 {
  margin: 0px;
}
#header {
  height: auto;
}
#footer .link-item a {
  display: table-cell;
  padding: 10px 10px;
  border: 2px solid white;
}
#footer {
  position: absolute;
  top: auto;
  bottom: 0%;
  height: auto;
}
#footer .link-item:first-child {
  border-spacing: 0px 10px;
  margin: 10px 10px 10px 0px;
}
#footer .link-item {
  border-spacing: 0px 10px;
  margin: 10px 10px;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;

&lt;body&gt;
  &lt;div id="mcontainer"&gt;

    &lt;div id="header"&gt;
      &lt;h1&gt;Text&lt;/h1&gt;
    &lt;/div&gt;

    &lt;div id="footer"&gt;
      &lt;span class="link-item"&gt;&lt;a href="www.google.com" target="new"&gt;Button&lt;/a&gt; &lt;/span&gt;
      &lt;span class="link-item"&gt;&lt;a href="www.google.com" target="new"&gt;Button&lt;/a&gt; &lt;/span&gt;
      &lt;span class="link-item"&gt;&lt;a href="www.google.com" target="new"&gt;Button&lt;/a&gt; &lt;/span&gt;
      &lt;span class="link-item"&gt;&lt;a href="www.google.com" target="new"&gt;Button&lt;/a&gt; &lt;/span&gt;
      &lt;span class="link-item"&gt;&lt;a href="www.google.com" target="new"&gt;Button&lt;/a&gt; &lt;/span&gt;
    &lt;/div&gt;

  &lt;/div&gt;
&lt;/body&gt;

&lt;/html&gt;</code></pre>
</div>
</div>
</p>

<p>Any help would be appreciated.</p>
