SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Wizard
    Join Date
    Nov 2000
    Location
    Chico, Ca
    Posts
    1,125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Non-tileing, centered bg in a table?

    I am trying to get a bg in a table to center, is this possible?

    Here is the code that I have

    Code:
    <td height="299" width="77%" valign="middle" align="center" STYLE="background-repeat:no-repeat;" background="images/note.jpg" >&nbsp;</td>
    And it works, but the bg is tiled

    here is the code that I tried to stop the tiling:

    Code:
    <td height="299" width="77%" valign="middle" align="center" STYLE="background-position:center; background-repeat:no-repeat;" background="images/note.jpg" >&nbsp;</td>
    anyone have any ideas?

    thanks

    Chuck
    "Happiness doesn't find you, you find happiness" -- Unknown
    www.chuckknows.com

  2. #2
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're using two different mechanisms. Try:
    Code:
    style="background: url(image-address.gif) no-repeat center"
    and don't use the background tag. :-)

    ~~Hope This Helps


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •