diff options
| author | Jacob Thornton <[email protected]> | 2012-01-22 20:12:26 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-22 20:12:26 -0800 |
| commit | 36d56fb1ba803358e8244189fbef883290af87d0 (patch) | |
| tree | 6d2f02fedb75c1ed59e1acddf368f3291b259585 /lib | |
| parent | b8c0388f8af8ae93a514efaa352f63ecdffde279 (diff) | |
| download | bootstrap-36d56fb1ba803358e8244189fbef883290af87d0.tar.xz bootstrap-36d56fb1ba803358e8244189fbef883290af87d0.zip | |
don't use negative margin - use first child to set to 0
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/scaffolding.less | 8 |
1 files changed, 6 insertions, 2 deletions
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(); |
