Position of a table background image

Discussion in 'HTML' started by Werner Reiter, Dec 25, 2004.

  1. 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.
    Werner Reiter, Dec 25, 2004
    #1
    1. Advertising

  2. Werner Reiter wrote:

    > 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>

    --
    Yours
    Erik Ginnerskov
    http://hjemmesideskolen.dk - http://html-faq.dk
    http://ginnerskov.frac.dk
    Erik Ginnerskov, Dec 25, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jean-Louis Crouzet

    Table td with background image & link & image

    Jean-Louis Crouzet, Jul 21, 2005, in forum: HTML
    Replies:
    4
    Views:
    1,629
    Jean-Louis Crouzet
    Jul 23, 2005
  2. David Graham

    background image position

    David Graham, Mar 4, 2006, in forum: HTML
    Replies:
    9
    Views:
    448
    David Graham
    Mar 6, 2006
  3. jc
    Replies:
    3
    Views:
    1,728
  4. jc
    Replies:
    1
    Views:
    1,367
    Neredbojias
    Mar 19, 2008
  5. Dj Frenzy
    Replies:
    3
    Views:
    307
    Robert
    Feb 10, 2004
Loading...

Share This Page