css padding: only override values needed
aligns left/right borders of content text with header/footer text
This commit is contained in:
parent
d0a22a44cd
commit
9723277851
@ -14,12 +14,13 @@ html, body {
|
|||||||
/* Negative indent footer by its height */
|
/* Negative indent footer by its height */
|
||||||
margin: 0 auto -120px;
|
margin: 0 auto -120px;
|
||||||
/* Pad bottom by footer height */
|
/* Pad bottom by footer height */
|
||||||
padding: 0 4px 60px;
|
padding-bottom: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.footer {
|
.footer {
|
||||||
height: 60px;
|
height: 60px;
|
||||||
padding: 15px;
|
padding-top: 15px;
|
||||||
|
padding-bottom: 15px;
|
||||||
margin-top: 60px;
|
margin-top: 60px;
|
||||||
background-color: #ddd;
|
background-color: #ddd;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user