2014-02-05 55 views
0

你好我一直在努力爲此tooooooo長,我不得不問,誰知道我可以完全吠叫錯誤的樹。把字段標籤與字段內聯

<div class="field field-name-field-they-say field-type-text-long field-label-above"> 
<div class="field-label">They Say: </div> 
<div class="field-items"> 
<div class="field-item even">Our juiciest juice to date. It's like a watermelon at peak  ripeness, when the color is vivid and the juice drips down your face. Mellow sweetness and you can actually taste the rind. This flavor is perfect to vape at summer barbecues. It smells delicious and produces a lot of vapor. </div> 
</div> 

它的字段標籤'他們說'位。我只是想啓動現場項目位有它內嵌「我們最豐厚的果汁至今......」

.field-name-field-they-say { 
    background-color: #232425; 
    border-radius: 10px; 
    font-style: italic; 
    overflow: hidden; 
    padding: 10px; 
} 

.field .field-label { 
    font-weight: bold; 
} 

它採取了我一個半小時剛剛發佈我上面的代碼在計算器所以你可以看到你的這裏處理:(

感謝

回答

1

只是字段標籤

FIDDLE

上添加
.field .field-label { 
    font-weight: bold; 
    float:left; /* add this */ 
} 
+0

.field-label { float:left; } –

+0

啊哈哈,輝煌的丹尼爾。作品一種享受。不知道爲什麼我從來沒有想到這一點。再次感謝 :) –