SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

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

    make box expand with 1 image.

    Hello,
    I was looking at newgrounds.com, and I saw that the backgrounds of their images exist out of only 1 image. - http://img.ngfiles.com/box.gif
    Yet, they have rounded corners on both sides (even though the backgound is way bigger) and and their boxes expand.

    I've looked at the code, but I cant really see it.
    Can someone please explain me?

    The bottom of their boxes also perfectly closes, with same image.

    Thanks alot!

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No real trick to it really - they've just combined the top of the box image with the bottom into the same file and then used a different bg-position and height depending on which div is calling it.


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
  •