我想让我的左列右对齐,我的右列左对齐,以便它们沿着中心轴排列,如下所示:
16 January 2013 | Here is a line of text.
26 December 2013 | Another line of text here.
4 May 2011 | Here is something else.
HTML在<span>
s中,像这样:
<div class="line">
<span class="date">16 January 2013</span> <span class="text">Here is a line of text.</span>
</div>
我一直在尝试这样做.line { display: table-row; }
,.line span { display: table-cell; }
但它似乎不起作用。