SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Aug 2005
    Location
    Belgium
    Posts
    387
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Partially repeat bg-image?

    Hey,
    Is it possible to repeat just a part of an image?
    Let's say I have a div, of witch the height is 100px.
    I also have a background image, width 30px. Now I want to repeat the second 10 pixels of that image verticaly.
    Is that possible? So the first the, and last ten pixels won't be shown when the image is repeated? I don't want to cut the image, for faster loading time.

    Thanks!

  2. #2
    SitePoint Wizard bronze trophy DaveWoods's Avatar
    Join Date
    Dec 2004
    Location
    Derbyshire - UK
    Posts
    2,651
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not that I'm aware.

    This method is used quite often for icons that need to be displayed but I haven't seen this technique used for background repeating images.

    Personally, I don't think you'll be saving any significant amount of size on the images doing it this way instead of cropping an image and repeating it on it's own so I'd probably go for that method even though they may take slightly longer to create.


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
  •