2012-04-28 93 views
0

我嘗試這樣 enter image description hereCSS:定位的div

元素的位置,但我得到這個 enter image description here

的HTML是

<div class="letters"> 
<p class="letter">A</p> 
<p class="glostitle"></p> 
</div> 

的CSS是

.letters { 
    display: block; 
    float: left; 
    position: relative; 
    text-align: center; 
    text-transform: uppercase; 
    width: 280px; 
} 

謝謝

+0

請爲插件上傳完整的css/html代碼 – 2012-04-28 13:37:39

回答

0

我認爲你不能在沒有javascript的情況下實現這一目標。

更好,我可以得到的是:http://jsfiddle.net/QeWz2/2/

我用display: inline-blockvertical-align: top獲得該行爲

更新

我覺得Columnizer是你正在尋找的jQuery插件。

+0

thx,發現它確實有用。 – 2012-04-30 06:42:17