How to align to center this background.

Discussion in 'CSS' started by whiteshadow18, Jan 2, 2011.

  1. #1
    I have the following code: html body {
    background: url(images/bg.jpg) repeat-y;
    font-size: 12px;
    font-family: Arial, Verdana, Tahoma, Times New Roman;
    line-height: 1.5em;
    color: #1e1e1e;
    }
    My site is: http://www.blog.imediazone.net and i wish to know if there is a posibility to align the 2 blue lines in the center. The bg.jpg i made it 960px width.
     
    whiteshadow18, Jan 2, 2011 IP
  2. Bapinder

    Bapinder Well-Known Member

    Messages:
    151
    Likes Received:
    7
    Best Answers:
    3
    Trophy Points:
    120
    #2
    Try this:

    html body {
    background: url(images/bg.jpg) repeat-y center;
    font-size: 12px;
    font-family: Arial, Verdana, Tahoma, Times New Roman;
    line-height: 1.5em;
    color: #1e1e1e;
    }
     
    Bapinder, Jan 2, 2011 IP
    whiteshadow18 likes this.
  3. whiteshadow18

    whiteshadow18 Peon

    Messages:
    378
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you very very much
     
    whiteshadow18, Jan 2, 2011 IP
  4. Bapinder

    Bapinder Well-Known Member

    Messages:
    151
    Likes Received:
    7
    Best Answers:
    3
    Trophy Points:
    120
    #4
    No problem.
     
    Bapinder, Jan 2, 2011 IP
  5. whiteshadow18

    whiteshadow18 Peon

    Messages:
    378
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    And one more thing: In the footer i have a white space of height 3 px. how can i make it all blue?
     
    whiteshadow18, Jan 2, 2011 IP