From 36d56fb1ba803358e8244189fbef883290af87d0 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 22 Jan 2012 20:12:26 -0800 Subject: don't use negative margin - use first child to set to 0 --- lib/scaffolding.less | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/scaffolding.less b/lib/scaffolding.less index 7ad8a7b16..66e5cc32f 100644 --- a/lib/scaffolding.less +++ b/lib/scaffolding.less @@ -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(); -- cgit v1.2.3