SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist j0n's Avatar
    Join Date
    Apr 2003
    Location
    uk
    Posts
    546
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting an image as a background in CSS

    Hey guys,

    Ive got an image that i want to set as the background of a table cell. I want it to be displayed in the top left hand corder, and not to repet.

    How would i go about doing this?

    Thanks,
    Jon

  2. #2
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    #yourID {background: transparent url(/path/to/image.gif) left top no-repeat}
    Birnam wood is come to Dunsinane

  3. #3
    SitePoint Evangelist j0n's Avatar
    Join Date
    Apr 2003
    Location
    uk
    Posts
    546
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers mate, your a legend.


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
  •