css padding: only override values needed

aligns left/right borders of content text with header/footer text
This commit is contained in:
Thomas Waldmann 2013-11-03 01:29:20 +01:00
parent d0a22a44cd
commit 9723277851

View File

@ -14,12 +14,13 @@ html, body {
/* Negative indent footer by its height */
margin: 0 auto -120px;
/* Pad bottom by footer height */
padding: 0 4px 60px;
padding-bottom: 60px;
}
.footer {
height: 60px;
padding: 15px;
padding-top: 15px;
padding-bottom: 15px;
margin-top: 60px;
background-color: #ddd;
}