Give help. Get help.

  • # August 5, 2010 at 2:22 pm

    Is there any way to make a background image of a div stretch to 100%? For example, if i have a div with a width of 100% and a height of 400px, and a background image with the size 980px by 400px, is there any way that image could be stretched to fit the whole div, or even using javascript?



    # August 5, 2010 at 7:21 pm


    Try … und-image/

    # August 6, 2010 at 2:44 pm

    Thanks dude. Is this cross browser though? (Referring to the last, CSS-only method.)

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.