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
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default The image won't go over the whole screen :S

    Hey,
    I'm currently coding a layout, and want to make the nav go over the whole screen.

    I've tried:
    HTML Code:
    #CSSname {
    background-image: url(folder/image.png);
    width: 100%;
    height: 20px;
    }
    and

    HTML Code:
    #CSSname {
    background-image: url(folder/image.png);
    height: 20px;
    margin-left: 0px;
    margin-right: 0px;
    }
    none of them works


    Anything else that will work?


    Thanks.
    Last edited by Meti; 08-10-2008 at 06:19 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    You need to style the "body" of the document.

    Code:
    body {
    margin-left: 0;
    margin-right: 0;
    }
    Should work, I had the same problem recently

  3. #3
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    In order for something to be 100% width, the parent element must be 100%.

    In this case, that is the body.


  4. #4
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    But If I don't want everything to be over the whole screen?

  5. #5
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    Well with my code it wouldn't be? The parent element (body) is the full screen, you would define the width of your container etc separately and the elements within that?

    With the code I provided, your navigation should touch both sides of the screen

  6. #6
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Thanks!

    +rep

    @ Luke,
    I can't give you rep. Need to spread.

  7. #7
    Join Date
    Feb 2007
    Location
    Essex, England
    Posts
    1,392
    Tokens
    0

    Latest Awards:

    Default

    Lol fair enough


Posting Permissions

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