Ich muss den Pfeil in der Mitte der Tabellenzelle ausrichten. Ich habe vertical-align: middle;
hinzugefügt, aber es funktioniert nicht. Bitte helfen Sie mir, dieses Problem zu beheben.Symbol in der Mitte der Tabelle ausrichten
.table {
display: table;
border: 1px solid black;
}
.table-cell {
height: 30px;
display: table-cell;
vertical-align: middle;
padding-left: 25px;
padding-right: 25px;
}
img {
float: right;
}
date {
display: block;
}
<div class="table">
<div class="row">
<div class="table-cell">
<span>Lorem ipsum</span>
</div>
<div class="table-cell">
<span>Lorem ipsum</span>
</div>
<div class="table-cell">
<span>Text1 lorem</span>
<date>28-01-2017</date>
<img src="https://image.flaticon.com/icons/svg/60/60758.svg" width="12px" height="12px">
</div>
</div>
</div>
Warum nicht mit 'Position: absolute' dafür? –