Remove unnecessary margin-top and margin-bottom from center-block mixin.

Setting top and bottom margins is not necessary to center the element, and it can potentially override the margins set by another rule.
This commit is contained in:
Ian Dunn 2015-01-11 11:23:26 -08:00
parent 6b2e7c8b44
commit 3d6bd4df39
2 changed files with 4 additions and 2 deletions

View File

@ -7,7 +7,8 @@
// Center block
@mixin center-block {
display: block;
margin: 0 auto;
margin-left: auto;
margin-right: auto;
}
// Clearfix

View File

@ -579,7 +579,8 @@ a:active {
.aligncenter {
clear: both;
display: block;
margin: 0 auto;
margin-left: auto;
margin-right: auto;
}
/*--------------------------------------------------------------