Forum Moderators: open

Message Too Old, No Replies

text align

         

Kysmiley

1:51 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



Is there anyway or code that I could use that would force text or a small image to the bottom right of a table cell.
Pat

Birdman

2:16 pm on Oct 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried "valign" and "align"?

<td valign="bottom" align="right">

Also, CSS style:

<td style="vertical-align: bottom; text-align: right;">

mcfly

2:26 pm on Nov 11, 2004 (gmt 0)

10+ Year Member



Pat, if you want to place an image in a specific location in a table cell I sometimes use CSS as follows:

td.example {
background-image: url(my_pic.gif);
background-repeat:no-repeat;
background-position: 90% 70%;
}

You can place the image anywhere you want within the cell by changing the background-position. 90% 70% positions the image 90% of the way across the cell and 70% down it. You can also specify exact numbers of pixels eg. 100px 60px

Hope that's helpful.