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!


Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2009
    Location
    Kent
    Posts
    101
    Tokens
    0

    Default background-position issues.

    Hey. I need to set my background position and it's pretty easy if I make sure the background is unrepeated, however I need the background to "repeat-y".

    Every time I set the position it just springs to the top, is there any efficient way of repeating a background and setting its position?

    e.g:

    I want to set the position of the background to 50px down with:
    background-position: 0 50px;

    If I now change background-repeat to:
    background-repeat: repeat-y;

    it then goes across the whole div, whereas I need to to repeat from 50px downwards.
    Last edited by MisturMan; 29-01-2010 at 06:47 PM.

  2. #2
    Join Date
    Sep 2009
    Location
    Kent
    Posts
    101
    Tokens
    0

    Default

    I dont mind using javascript if theres a way to do it that way, I just need to find a solution.

    edit:
    Searched around for a bit and it seems there is no solution.
    Last edited by MisturMan; 29-01-2010 at 09:03 PM.

  3. #3
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    css..

    body {
    background:url(images/bg.png) repeat-y;
    margin-top: 50px;
    }

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  4. #4
    Join Date
    Sep 2009
    Location
    Kent
    Posts
    101
    Tokens
    0

    Default

    That wouldn't be the solution. I've already got a background image and adding a margin to the top wouldn't help anything.

  5. #5
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    instead of doing it as background you could do it as a div...

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  6. #6
    Join Date
    Sep 2009
    Location
    Kent
    Posts
    101
    Tokens
    0

    Default

    then how do I add another background?

  7. #7
    Join Date
    Sep 2009
    Location
    Kent
    Posts
    101
    Tokens
    0

    Default

    Quote Originally Posted by MisturMan View Post
    then how do I add another background?
    Ignore this. I've worked out how to do it, thanks!

Posting Permissions

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