Position of a table background image

W

Werner Reiter

Hi,

with the background tag in the td definition it is possible to display
an image in the specific cell. At standard the image fills up the entire
background.

I now want to display this image at the right bottom of the cell with an
height of 30px and a width of 30px. The rest of the cell should be
without an image.

Is (and how) this possible?

Thanks for all answers.
 
E

Erik Ginnerskov

Werner said:
with the background tag in the td definition it is possible to display
an image in the specific cell. At standard the image fills up the
entire background.

I now want to display this image at the right bottom of the cell with
an height of 30px and a width of 30px. The rest of the cell should be
without an image.

It isn't possible to define the size of a background image, so you must in a
graphic program make the image the wanted size. When that's dont, you insert
the background image like this:

<td style="background:url(bg.gif) bottom right no-repeat">Cell content
here</td>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,902
Latest member
Elena68X5

Latest Threads

Top