次のスクリーンショットをご覧ください: http://www.jesserosenfield.com/beta/descenders.png
私の問題は、降順(スクリーンショットの「7」など)の数字がスパンの下部に垂直に配置され、他の数字が垂直に中央に向かって配置されることです。アセンダー/ディセンダーに関係なく、すべての数値の垂直方向の配置を「均等化」する方法はありますか?
ありがとう!
コード:
<div class="postDate">
<span class="postDay"><?php the_time('j'); ?></span><br/>
<span class="postMonth"><?php the_time('M'); ?></span>
</div> <!-- postDate -->
とCSS
.postDate {
width: 99px;
height: 74px;
position: relative;
left: -30px;
font-family: Georgia, "times new roman", times, serif;
background: url(images/dateFlag.png) no-repeat;
text-align: center;
color: #ffffcc;
padding-top: 9px;
}
.postDay {font-size: 42px; border: 1px solid red;}
.postMonth {font-size: 17px; text-transform: uppercase}