html - How to bottom align a DIV within a variable size TD -
how can bottom align element (a div or span) within table cell height 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 1 <td> background-color. need so#... <div> bottom aligned float:right img.
you need "clear" float applied img:
.bottom{ clear: both; } html:
<div class="bottom">bottom text</div> fiddle: https://jsfiddle.net/l0j6sohs/
Comments
Post a Comment