1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

help with website background

Discussion in 'Programming & Webmastering' started by Hale88, Jun 9, 2010.

  1. Hale88 New Member

    Joined:
    Sep 4, 2009
    Messages:
    153 (0.07/day)
    Thanks Received:
    3
    Location:
    Somewhere in FL
    I am designing my own website but I tried anything but my image is not working...I want it to covers the entire page and works on all browsers. its size is about 1600x800. Java Script or anything similar will help.

    thanks
     
  2. DanTheBanjoman SeƱor Moderator

    Joined:
    May 20, 2004
    Messages:
    10,553 (2.58/day)
    Thanks Received:
    1,383
    body {
    background: url(filename.jpg) no-repeat;
    background-size: 100%;
    }
     
  3. Hale88 New Member

    Joined:
    Sep 4, 2009
    Messages:
    153 (0.07/day)
    Thanks Received:
    3
    Location:
    Somewhere in FL
    Can that automatically expand so It can fit to any monitor screen size?
     
  4. W1zzard

    W1zzard Administrator Staff Member

    Joined:
    May 14, 2004
    Messages:
    15,560 (3.80/day)
    Thanks Received:
    13,109
    you can either make it tile, so that it repeats on the edges or make the image sufficiently large so that it works on all resolutions (large download)
    if you make it expand or shrink in the browser it would lose in quality due to the resize process
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page