Consider the following table structure:
<table style="width:150px;">
<tr>
<td>some dynamicly generated content that can wrap several lines</td>
<td valign="bottom"><img ... /></td>
</tr>
</table>
How do I get this effect using CSS (i.e. that when the content in the first TD takes more lines,
the tables grows vertically and the image “drops” to the bottom)
Try
display:inline-blockYou’ll need a small hack for older browsers (Easily google-able), but it should accomplish what you need:http://jsfiddle.net/4vYHa/
Edit: If you then need the image to stick to the top you would just add
vertical-align:top;: