3
I need to align an image to the text of the other cell in the table. css is inline. Follow the code:
<table>
<tbody>
<tr>
<td style="display: inline-block; width: 50px; padding-left: 30px;">
<img src="[URL DO LOGO]" style="width: 50px;">
</td>
<br>
<td style="padding-left: 5px; display: inline-block; width: 480px;">
<div style="width: 480px; color: #757575; font-size: 12px; padding-left: 10px; padding-top: 10px; text-align:left;">Lorem ipsum.</div>
</td>
</tr>
</tbody>
</table>
The
display: inline-block
in Tds fucks with everything. And you want it to stay aligned as?– bfavaretto
in the middle of the cell...
– Alan PS
you can take the
display: inline-block
– Alan PS
Use
text-align: center; vertical-align: middle
in the TD style. And remove thedisplay: inline-block
.– bfavaretto
didn’t work out!!
– Alan PS