Resize background image to page NOT window

Discussion in 'Javascript' started by Kevin, Aug 30, 2003.

  1. Kevin

    Kevin Guest

    Hi all,

    I have create a background image that fits to the page by using this
    code.
    <img src="url/bg.jpg"
    style="position:absolute;height:100%;width:100%;z-index:-500;">
    Now this code creates an image that fits the screen but not the page.
    Is there any way (javascript or css) to fit the image to the screen or
    to fit the image to the screen resolution but as a fixed image (so
    that if you scroll the image doesn't scroll).

    Thx,
    Kevin
    Kevin, Aug 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Michel
    Replies:
    14
    Views:
    7,247
    Michel
    Jul 4, 2004
  2. jc
    Replies:
    3
    Views:
    1,717
  3. jc
    Replies:
    1
    Views:
    1,358
    Neredbojias
    Mar 19, 2008
  4. Replies:
    2
    Views:
    1,251
    Adrienne
    Feb 13, 2005
  5. YavolGurrick

    Resize Cell background image?

    YavolGurrick, Dec 1, 2004, in forum: Javascript
    Replies:
    0
    Views:
    92
    YavolGurrick
    Dec 1, 2004
Loading...

Share This Page