Aligning image to the top of a table cell

I'm designing a wordpress page inside of the wordpress editor, and I can't figure out how to get the grey image placeholder to align to the top of the table cell. As long as the text in the left cell doesn't go below the grey image, everything is fine. But as soon as the text gets below the bottom of the image, the image pushes down. Here's 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>

Answers


Just set the vertical-align: top property on the right td as well?


to align it to the top in a table you need to use in css: vertical-align: top


Need Your Help

How to properly Init a custom UITableviewCell?

ios objective-c uitableview initialization

I am using the following 2 methods to return a custom cell:

Using only the year part of a date for a WHERE condition

linq entity-framework entity-framework-4

In the LINQ statement below, I want to select people with an exam date in 2010. The exam date is stored as a datetime as the actual date and time is used in other applications. What is the most ele...