您可以将它们包装在容器中并将容器设置为display: inline-block
和vertical-align: middle
。
HTML
<table>
<tbody>
<tr>
<td style="padding-bottom:12px;">
<div class="image">
<a title="Blogartikel Nummer 2" href="#">
<img width="80" height="80" class="recent-thumbnail" title="Blogartikel Nummer 2" src="http://upload.wikimedia.org/wikipedia/commons/b/bf/Lano_Beach_-_Savai%27i,_2007.jpg" />
</a>
</div>
<div class="info">
<a title="Blogartikel Nummer 2" href="#">Blogartikel Nummer 2</a>
<div>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.</div>
</div>
</td>
</tr>
<tr>
<td style="padding-bottom:12px;">
<div class="image">
<a title="Blogartikel Nummer 1" href="#">
<img width="80" height="80" class="recent-thumbnail" title="Blogartikel Nummer 1" src="http://upload.wikimedia.org/wikipedia/commons/b/bf/Lano_Beach_-_Savai%27i,_2007.jpg" />
</a>
</div>
<div class="info">
<a title="Blogartikel Nummer 1" href="#">Blogartikel Nummer 1</a>
<div>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt.</div>
</div>
</td>
</tr>
</tbody>
</table>
CSS
.image, .info {
display: inline-block;
vertical-align: middle;
}
jsfiddle
建议:
您也可以完全摆脱表格,因为您并没有真正显示表格数据,而是将每个项目包装在自己的容器中。
HTML
<div class="item">
<div class="image">
<a title="Blogartikel Nummer 2" href="#">
<img width="80" height="80" class="recent-thumbnail" title="Blogartikel Nummer 2" src="http://upload.wikimedia.org/wikipedia/commons/b/bf/Lano_Beach_-_Savai%27i,_2007.jpg" />
</a>
</div>
<div class="info">
<a title="Blogartikel Nummer 2" href="#">Blogartikel Nummer 2</a>
<div>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt.</div>
</div>
</div>
<div class="item">
<div class="image">
<a title="Blogartikel Nummer 1" href="#">
<img width="80" height="80" class="recent-thumbnail" title="Blogartikel Nummer 1" src="http://upload.wikimedia.org/wikipedia/commons/b/bf/Lano_Beach_-_Savai%27i,_2007.jpg" />
</a>
</div>
<div class="info">
<a title="Blogartikel Nummer 1" href="#">Blogartikel Nummer 1</a>
<div>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
eirmod tempor invidunt.</div>
</div>
</div>
CSS
.item {
margin-bottom: 12px;
}
.image, .info {
display: inline-block;
vertical-align: middle;
}
jsfiddle