don't use negative margin - use first child to set to 0

This commit is contained in:
Jacob Thornton
2012-01-22 20:12:26 -08:00
parent b8c0388f8a
commit 36d56fb1ba
3 changed files with 12 additions and 5 deletions

View File

@@ -75,11 +75,15 @@ a {
// -----------
// To customize the grid system, bring up the variables.less file and change the column count, size, and gutter there
.row {
margin-left: -@gridGutterWidth;
.clearfix();
}
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7)
[class*="span"]:first-child{
margin-left: 0;
}
// Find all .span# classes within .row and give them the necessary properties for grid columns
// (supported by all browsers back to IE7)
// Credit to @dhg for the idea
[class*="span"] {
.gridColumn();