mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-21 13:24:08 +03:00
improve CSS properties for centering content, the container, and fluid container so as to not override properties where possible
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user