Question # 1 → Here is the Code Pen link → Click Here. When I put footer out of the main div with id="pagewrap"
<footer>
<h4>Footer</h4>
<p>Footer text</p>
</footer>
</div><!-- end-of-pagewrap -->
If I do this →
</div><!-- end-of-pagewrap -->
<footer>
<h4>Footer</h4>
<p>Footer text</p>
</footer>
Its get broken like this → https://www.screencast.com/t/VXRFGVa30
Question #2→ I have more concern to discuss.
<div id="pagewrap">
#pagewrap {
padding: 15px;
max-width: 1400px;
margin: 20px auto;
}
But if I change this to class system the padding or border disappears. what goes wrong? the CSS is the same?
<div class="pagewrap">
.pagewrap {
padding: 15px;
max-width: 1400px;
margin: 20px auto;
}