代碼和預覽:what i have http://img78.imageshack.us/img78/9795/previewec9.gif我怎樣才能得到這個div的一部分坐在一起?
<html>
<head>
<title>Testing some CSS</title>
<style type="text/css">
.dDay {
font-size:205%
}
.dMon {
font-weight:bold;
font-variant:small-caps;
font-size:130%;
margin-top:-.7em;
}
.detailContainer {
vertical-align:middle;
display:table-cell;
padding:0em 0em 0em 1em;
}
#dContainer {
border:1px solid green;
display:table;
height:3.25em;
}
</style>
<body>
<div id="dContainer">
<div class="dDay">31</div>
<div class="dMon">sep</div>
<div class="detailContainer">Test O.O</div>
</div>
</body>
</html>
我的問題是:是否有可能到明年將其他日期部分,第一個,所以纔出現這樣的:what i want http://img505.imageshack.us/img505/2787/previewsp2.gif
編輯:奇怪,我試圖浮動之前我問的問題,並沒有工作...感謝大家:d
我想我將不得不作出額外的div來包含日期和月份,然後浮正確的嗎? – Anders 2008-10-08 15:36:22
不會「顯示:table-cell;」不通過v7在IE中工作? – matthewdunnam 2008-10-08 18:26:02