SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    South Coast United Kingdom
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dynamic resizing background image

    Hello,

    I wonder if someone could point me in the right direction

    I am setting up a form here

    http://search.squabit.com

    I have added a simple background shadow image bg.png . However when i hide the options using the show / hide toggle link (a jquery show / hide function) the div shrinks and the image looks kind of cut off.

    What would be the best method of making the background image resize. I feel it might have something to do with sprites but I am guessing

    Any help very much appreciated

    Thank you

    David

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,299
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    Hmm, background images don't resize. You might be able to associate different bg images depending on the state of the div, but that would be a JS thing. I would probably look at putting a subtle bottom border on the wrapper that would make things look tidy in the closed state, but you will probably hate that suggestion.

  3. #3
    SitePoint Enthusiast
    Join Date
    Sep 2008
    Location
    South Coast United Kingdom
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thannks for the reply - i think the subtle bottom image might be the option

    Cheers

    Dave


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
  •