Aligning the image at the top of the table cell

enter image description here

I am developing a wordpress page inside the wordpress editor, and I cannot figure out how to make the gray image fill at the top of the table cell. As long as the text in the left cell does not fall below the gray image, everything is in order. But as soon as the text falls below the bottom of the image, the image is pushed down. Here is the code:

<table border="1"> <tbody> <tr> <td style="vertical-align: top;"> <img class="alignleft size-full wp-image-71" alt="webi" src="#" width="437" height="114" /> &nbsp; <p> SOME TEXT </p> </td> <td style="width: 355px;"> <img class="alignright size-full wp-image-61" alt="palvelut_kuvapaikka" src="#" align="top" width="355" height="355" /> </td> </tr> </tbody> </table> 
+6
source share
2 answers

Just set the vertical-align: top property on the right + t21>?

+18
source

to align it at the top in the table to use in css: vertical-align: top

+2
source

All Articles