repeating background ??

Discussion in 'HTML & Website Design' started by surya, Sep 15, 2007.

  1. #1
    hi guys..
    take a look here, www.elegends.info
    you can clearly see that in the scrollable view, the background image is repeating..
    i dont want that to repeat.. what should i do?:confused:
     
    surya, Sep 15, 2007 IP
  2. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #2
    Try this CSS :)
    
    body{
    background-repeat:no-repeat;
    }
    Code (markup):
     
    blueparukia, Sep 15, 2007 IP
  3. surya

    surya Peon

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    :( sorry dude.. no change
     
    surya, Sep 15, 2007 IP
  4. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #4
    Where did you put it?

    Remove wherever you are declaring the background image now. You should do this all in CSS.

    E.g, If you are using <body background="image url"> remove it (just make it <body>

    Between you <head> and</head> tags add the following.

    
    <style type="text/css">
    body
    {
    background: #000 url(image url) no-repeat;
    }
    </style>
    Code (markup):
    In the end you code should look something like this:
    
    <html>
    <head>
    <style type="text/css">
    body
    {
    background: #000 url(image url) no-repeat;
    }
    </style>
    </head>
    <body>
    Your Content
    </body>
    </html>
    Code (markup):
    BP
     
    blueparukia, Sep 15, 2007 IP
  5. Sabr!na

    Sabr!na Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    still use the css:

    <style type="text/css">
    body
    {
    background: #000 url(image url) no-repeat;
    background-attachment:fixed;
    background-position:center;
    }
    </style>

    i hope it help :)
     
    Sabr!na, Sep 16, 2007 IP
  6. surya

    surya Peon

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #6
    cool..:cool: gotya:D
    thnx:)
     
    surya, Sep 16, 2007 IP
  7. surya

    surya Peon

    Messages:
    720
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #7

    daddy cooool:cool::cool: perfect thnx
     
    surya, Sep 16, 2007 IP
  8. Sabr!na

    Sabr!na Guest

    Messages:
    9
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    no prob :)
    im a girl btw. don't call me daddy hehehe :D
     
    Sabr!na, Sep 16, 2007 IP