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 5 of 5

Thread: CSS Help

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

    Latest Awards:

    Default CSS Help

    How i make this so it doesnt repeat and is centered:
    HTML Code:
       background: #FFFFFF url(style_images/<#IMG_DIR#>/forum.PNG);

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


  2. #2
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    center {
    background-image: ('forum.PNG');
    top: 500px;
    left: 250px;
    }

    Something like that, I don't really know css that well.

  3. #3
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Code:
    body {
    background: #FFFFFF url('style_images/<#IMG_DIR#>/forum.PNG') center no-repeat;
    }
    Last edited by nets; 27-09-2006 at 10:07 PM.
    kinda quit.

  4. #4
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by joshua View Post
    Code:
    body {
    background-image: url('style_images/<#IMG_DIR#>/forum.PNG');
    background-color: #FFFFFF;
    background-positon: center;
    background-repeat: no-repeat;
    }
    ah, there we go.

    joshua, out of interest would that code center the bg both height and widthwise?

  5. #5
    Join Date
    Aug 2004
    Location
    bristol
    Posts
    3,799
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by RYANNNNN View Post
    ah, there we go.

    joshua, out of interest would that code center the bg both height and widthwise?
    I changed it to the shortcut attribute. ANYWAY, I think it wont be centred vertically & horizontally in FF, to fix that you'll need to add "fixed" at the beginning of the declaration:

    Code:
    body {
    background: fixed #FFFFFF url('style_images/<#IMG_DIR#>/forum.PNG') center no-repeat;
    }
    kinda quit.

Posting Permissions

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