我試着去網站這樣定位:的CSS:事業部的定位(2多個div的列(左 - 右)+ DIV中心)
-------------------
{ }{ }{ }
{ }{ }{ }
-----{ }-----
{ }{ }{ }
{ }{ }{ }
-------------------
任何想法?嘗試漂浮左右,但各自的列不斷包裝到中心,使我無法把中心的div在那裏。
左,右列已leftcolumn和rightcolumn類
我的代碼: 左側立柱:
div.aside.gauche div.section.colonne.categories {
height:460px;
width:210px;
border-style:solid;
margin-top:16px;
border: 1px solid black; -moz-border-radius: 0.3em 0.3em 0.3em;
float:left;
}
div.aside.gauche div.section.colonne.commentaires {
height:85px;
width:210px;
border-style:solid;
margin-top:6px;
border: 1px solid black; -moz-border-radius: 0.3em 0.3em 0.3em;
float:left;
}
div.aside.gauche div.section.colonne.magasins {
height:321px;
width:210px;
border-style:solid;
margin-top:6px;
border: 1px solid black; -moz-border-radius: 0.3em 0.3em 0.3em;
float:left;
}
右列:
div.aside.droite div.section.colonne.recherche {
height:460px;
width:170px;
border: 1px solid black; -moz-border-radius: 0.3em 0.3em 0.3em;
float:right;
}
div.aside.droite div.section.colonne.suivez {
height:460px;
width:170px;
border: 1px solid black; -moz-border-radius: 0.3em 0.3em 0.3em;
float:right;
}
div.aside.droite div.section.colonne.partenaires {
height:460px;
width:170px;
border: 1px solid black; -moz-border-radius: 0.3em 0.3em 0.3em;
float:right;
}
中心一塊
div.milieu {
float:left;
display:block;
}
發佈您的代碼,或讓jsfiddle –
向我們展示您的CSS。然而,在網上搜索關於[三欄佈局](http://matthewjamestaylor.com/blog/perfect-3-column.htm)將幫助你 – JMax