webpage background question

Discussion in 'OT Technology' started by daviid, Nov 24, 2005.

  1. daviid

    daviid cell tower tech

    Joined:
    Nov 7, 2003
    Messages:
    1,628
    Likes Received:
    0
    Location:
    Concord, NC
    is there anyway to get the background image to center it self? the issue being is the site that im working on is designed for 1024x768 and i run 1600x1200. i find it annoying having to look at chopped images. im sure i can do something with SSI but i rather go easier the easier way
     
  2. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    you can do it with css.

    Code:
    body{
      background-image: url(/background.jpg);
      background-repeat: no-repeat;
      background-position: center;
      background-color: #FFFFFF;
      color: #000000;
    }
    
     
  3. daviid

    daviid cell tower tech

    Joined:
    Nov 7, 2003
    Messages:
    1,628
    Likes Received:
    0
    Location:
    Concord, NC
    thank you that worked perfectly
     
  4. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    i was in a good mood. normally i just bitch and whine about googling it.
     

Share This Page