SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast wwright's Avatar
    Join Date
    Nov 2002
    Location
    Florida
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    no repeat images

    Hi all,

    Is there any way to make an image not repeat. The reason I ask is I have an a table inside a div tag and that table has some small images within it. The table is set to 50% and the div tag has it positioned at 0,0 px But when i view it at higher resolutions the images repeat across the screen. Is there any way to stop this?

    Thanks wwright

  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)
    Shure is!

    You're using CSS, right? If you are, just use the background-repeat property:
    Code:
    #mytable {
      background-image: url(...IMG...);
      background-position: 0 0;
      background-repeat: no-repeat;
    }
    
    /* Or just use the shorthand 'background' */
    #mytable {
      background: url(...IMG...) 0 0 no-repeat;
    }
    Hope this Helps! :-)

    ~~Ian

  3. #3
    SitePoint Enthusiast wwright's Avatar
    Join Date
    Nov 2002
    Location
    Florida
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great that works great!!!!! YOU ARE IAN

    Thanks wwright

  4. #4
    We like music. weirdbeardmt's Avatar
    Join Date
    May 2001
    Location
    Channel Islands Girth: Footlong
    Posts
    5,882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by wwright
    YOU ARE IAN
    Yep he IS Ian! His name sorta gives it away, dontcha' think?
    I swear to drunk I'm not God.
    Matt's debating is not a crime
    Hint: Don't buy a stupid dwarf Clicky

  5. #5
    SitePoint Wizard Ian Glass's Avatar
    Join Date
    Oct 2001
    Location
    Beyond yonder
    Posts
    2,384
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, it can get confusing, sometimes. :-p

    Wwright, all Ians do their best.

    ~~Ian


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
  •