added clearfix on grids
This commit is contained in:
parent
d2b9389fff
commit
675de51460
2 changed files with 10 additions and 1 deletions
|
@ -4,6 +4,11 @@
|
||||||
/* ----------------------------- */
|
/* ----------------------------- */
|
||||||
|
|
||||||
/* equal grids with 2% gutter */
|
/* equal grids with 2% gutter */
|
||||||
|
[class^=grid]:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
[class^=grid] > * {float: left; } /* direct childrens are floating */
|
[class^=grid] > * {float: left; } /* direct childrens are floating */
|
||||||
[class^=grid] > * + * { margin-left: 2%; } /* here's the gutter */
|
[class^=grid] > * + * { margin-left: 2%; } /* here's the gutter */
|
||||||
.grid2 > * { width: 49%; }
|
.grid2 > * { width: 49%; }
|
||||||
|
|
|
@ -348,7 +348,11 @@ img.left, img.right {
|
||||||
|
|
||||||
/* grids */
|
/* grids */
|
||||||
/* ------------------------------ */
|
/* ------------------------------ */
|
||||||
|
[class^=grid]:after {
|
||||||
|
content: "";
|
||||||
|
display: table;
|
||||||
|
clear: both;
|
||||||
|
}
|
||||||
[class^=grid] > * {float: left; } /* direct childrens are floating */
|
[class^=grid] > * {float: left; } /* direct childrens are floating */
|
||||||
|
|
||||||
.grid2 > * {.grid(2);}
|
.grid2 > * {.grid(2);}
|
||||||
|
|
Loading…
Reference in a new issue