diff options
| author | Mark Otto <[email protected]> | 2011-09-02 21:00:01 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2011-09-02 21:00:01 -0700 |
| commit | c4481b54a8c2cf05bd12d04196e3234523d27653 (patch) | |
| tree | 0e4b34685863f4286ffd0a1b1ef01b68c924ec98 /lib | |
| parent | 2589c0ac4ecc86feed81cfc5df344e0eb78cda64 (diff) | |
| download | bootstrap-c4481b54a8c2cf05bd12d04196e3234523d27653.tar.xz bootstrap-c4481b54a8c2cf05bd12d04196e3234523d27653.zip | |
improve CSS properties for centering content, the container, and fluid container so as to not override properties where possible
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/preboot.less | 3 | ||||
| -rw-r--r-- | lib/scaffolding.less | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/lib/preboot.less b/lib/preboot.less index a922f569c..d840ad1a6 100644 --- a/lib/preboot.less +++ b/lib/preboot.less @@ -70,7 +70,8 @@ // Center-align a block level element .center-block { display: block; - margin: 0 auto; + margin-left: auto; + margin-right: auto; } // Sizing shortcuts diff --git a/lib/scaffolding.less b/lib/scaffolding.less index 615e6be78..b7c44e652 100644 --- a/lib/scaffolding.less +++ b/lib/scaffolding.less @@ -73,13 +73,15 @@ body { // Container (centered, fixed-width layouts) .container { - width: 940px; - margin: 0 auto; + width: @siteWidth; + margin-left: auto; + margin-right: auto; } // Fluid layouts (left aligned, with sidebar, min- & max-width content) .container-fluid { - padding: 0 20px; + padding-left: 20px; + padding-right: 20px; .clearfix(); > .sidebar { float: left; |
