How would I get a desired background like these two websites?

Discussion in 'CSS' started by kelp, Jul 26, 2006.

  1. #1
    http://www.radiantmars.com/
    http://www.merix.com.pl/

    As you can see, both of their background span the entire length of the page, yet everything is centered for an 800x600 layout. How would I achieve this? Create a smaller div inside the bigger div with a length of 800px and center it?
     
    kelp, Jul 26, 2006 IP
  2. catanich

    catanich Peon

    Messages:
    1,921
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #2
    catanich, Jul 26, 2006 IP
  3. iceberg

    iceberg Notable Member

    Messages:
    1,751
    Likes Received:
    318
    Best Answers:
    0
    Trophy Points:
    200
    #3
    background: url('/images/abc.jpg or gif or png') repeat;

    if you want to repeat the image vertically
    background: url('/images/abc.jpg or gif or png') repeat-y;

    if you want to repeat the image horizantally
    background: url('/images/abc.jpg or gif or png') repeat-x;

    if you dont want to repeat
    background: url('/images/abc.jpg or gif or png') no-repeat;
     
    iceberg, Jul 26, 2006 IP
  4. AtanasYanev

    AtanasYanev Active Member

    Messages:
    407
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    80
    #4
    AtanasYanev, Jul 27, 2006 IP
  5. AdamSee

    AdamSee Well-Known Member

    Messages:
    422
    Likes Received:
    28
    Best Answers:
    0
    Trophy Points:
    135
    #5
    
    
    html {
     background: #00000 url(../img/top_bg.jpg) repeat-y  top left;
    }
    Code (markup):
    background: #color url(location) repeat it down the page, start the background from the top left
     
    AdamSee, Jul 27, 2006 IP
  6. Superorb

    Superorb Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Beat me to it :) That's what I was going to suggest.
     
    Superorb, Jul 28, 2006 IP
  7. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #7
    Just out of curiosity, since I haven't seen a post that actually adds value to the
    thread, are you whoring for post count?

    cheers,

    gary
     
    kk5st, Jul 28, 2006 IP
  8. Superorb

    Superorb Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    No, I was bored yesterday at work and I was the only on there in the whole department and I had a few hours to kill with nothing to do.
     
    Superorb, Jul 29, 2006 IP