image in right corner of a table row

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • babashankar
    New Member
    • Feb 2009
    • 2

    image in right corner of a table row

    Hi,

    I have a simple html as below:

    <html>
    <body>
    <table><tr>
    <td style="backgrou nd:#DD6D68" width="100" height="100">
    <div>image name</div>
    <div style="vertical-align:bottom;fl oat:right;">
    <img src="angry.gif" alt="Angry face" width="32" height="32" />
    </div>
    </td>
    </tr>
    </table>
    </body>
    </html>
    to test it copy and paste the above code in below URL.
    http://www.w3schools.c om/tags/tryit....tml_im age_test

    I want the image to appear on bottom right of the table cell.

    Thanks
  • hsriat
    Recognized Expert Top Contributor
    • Jan 2008
    • 1653

    #2
    Use it as a background image... if possible. You can adjust background-position to bottom right.

    Btw.. if that's the whole of the code, I don't see any need of using table.

    Comment

    Working...