How can I bottom align an element (a div or a span) within a table cell that height is dynamically changed.
<tr><td>
<div>Top text</div>
<img src="#variableheight" style="float:right" />
<div style="vertical-align:bottom">bottom text</div>
</td></tr>
Red one is the <td> with background-color. I need the SO#... <div> to be bottom aligned with the float:right img.
You only need to "clear" the
floatapplied toimg:HTML:
FIDDLE: https://jsfiddle.net/L0j6sohs/