Since when using % in padding the calculation is done based on the width of the parent element, why doesn't a div with the negative % of the parents padding fill make the div cover the whole parent element?
#test {
max-width: 800px;
width: 100%;
margin: 0 auto;
font-size: 12px;
background: #fff;
color: #000;
line-height: 18px;
border: 1px solid #000;
}
#test .content {
padding: 2% 6%;
text-align: justify;
}
#test .apply {
margin-left: -6%;
margin-right: -6%;
}
#test .apply p {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
background-color: yellow;
}
<div id="test">
<div class="content">
<p><strong>Test</strong></p>
<div class="apply">
<p>test</p>
</div>
</div>
</div>