我的_base.scss
包含以下内容:
$blueprint-grid-columns: 12;
$blueprint-container-size: 750px;
$blueprint-grid-margin: 0px;
// Use this to calculate the width based on the total width.
// Or you can set $blueprint-grid-width to a fixed value and unset $blueprint-container-size -- it will be calculated for you.
$blueprint-grid-width: ($blueprint-container-size + $blueprint-grid-margin) / $blueprint-grid-columns - $blueprint-grid-margin;
我的页面上有一个大盒子,宽度为750像素
#big-box {
@include container;
background-color: #FFFFFF;
margin-top: 15px;
min-height: 550px;
}
我想在这个框中放置一个居中对齐的框,但我似乎无法做到。下面是我的代码:
#login{
@include container;
margin-top: 15px;
@include column(11);
background-color: #F1F1F1;
}
如何让#login
框处于中间位置?
width: span(11);
很好用。现在该盒子的宽度自动设置为686.667 px
。我是 Blueprint CSS 的新手。您能详细说明一下如何通过设置 span(11) 解决了这个问题吗? - Mike