到中心一箱我_base.scss
包含以下如何使用藍圖CSS框架
$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 px
寬
#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
箱在中間?
它現在的樣子Image:
'width:span(11);'working great。現在該框的寬度自動設置爲「686.667 px」我是blueprint CSS的新手。你能否詳細說明設置跨度(11)如何解決這個問題? – Mike
當然,編輯答案。 – numbers1311407