Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 2 12 LastLast
Results 1 to 10 of 20
  1. #1
    Join Date
    Jun 2007
    Location
    Scotland
    Posts
    71
    Tokens
    0

    Default A little help please?

    I'm in the process of making my new site and i've found an awesome background image to use. However, when a page expands beyond the image size, it repeats and it looks rubbish.

    Does anyone know the script/coding that holds the background in place but lets the layout scrolls on top of it? I appreciate any help you can give.

  2. #2
    Join Date
    Mar 2007
    Location
    Portland/dorset
    Posts
    1,568
    Tokens
    0

    Latest Awards:

    Default

    need to edit the css to make it fixed somthing like backround:} fixed that isnt it but
    Lets make the map red again

    T4 on the beach 2009 woo
    Need help PM me Im always happy to help, more then the guys at Asda

  3. #3
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    Code:
    <style type="text/css">
    <!--
    body {
      background-image: url(url to ur bg pic); background-repeat: no-repeat; background-attachment: fixed;
    }
    -->
    </style>
    put that in head section
    Last edited by Swearwolf; 04-01-2008 at 08:22 PM.
    no

  4. #4
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    Use CSS

    In head
    HTML Code:
    <style type="text/css">
    <!--
    body{background: url(PATH TO BACKGROUND); background-attachment:fixed;}
    -->
    </style>
    Edit: Hoax bet me to it
    Coming and going...
    Highers are getting the better of me

  5. #5
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    mrcraig, add in the "background-repeat: no-repeat;" lolol
    no

  6. #6
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    yeah, but surely if the attachment is fixed, it wont matter if it repeats or not?
    Coming and going...
    Highers are getting the better of me

  7. #7
    Join Date
    Oct 2005
    Location
    Corby
    Posts
    5,512
    Tokens
    2,675
    Habbo
    cabbage (origins)

    Latest Awards:

    Default

    fair point, my bad
    no

  8. #8
    Join Date
    May 2006
    Posts
    1,797
    Tokens
    0

    Latest Awards:

    Default

    LOL, nps

    I was thinking about adding when coding then though "Nah, wont waste some bytes on it"

    +REP for making a point
    Coming and going...
    Highers are getting the better of me

  9. #9

    Default

    HTML Code:
    <style>
    body
    {
    background: url('path/to/image') fixed no-repeat;
    }
    </style>
    Last edited by Jme; 04-01-2008 at 08:32 PM.

  10. #10
    Join Date
    Jun 2007
    Location
    Scotland
    Posts
    71
    Tokens
    0

    Default

    Thank you for all your help guys, but when I tried using them, they either didn't work or would only show the one image and it didn't cover the whole screen. Am I doing something wrong?

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •