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 11
  1. #1
    Join Date
    Sep 2009
    Location
    Kent
    Posts
    101
    Tokens
    0

    Default How could I code this?



    The black part is one background, the orange is another and the red boxes can expand down. I tried coding this in many different ways however I also want the orange bit to expand - this means that when the two red boxes expand it pushes the orange background down leaving a gap? Is there any way I could do this using as little images as possible (black being one big image and the orange being a repeated image). Thanks for all advice and if you didn't get this then please tell me as I'll explain again - I'm tired and cannot think of what to type

    Thanks,
    Jason.

  2. #2
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    You could set the tables background to your main background, then put a DIV in the table with a non repeating vertical background, then just add the boxes as if it's one big table
    I'm not crazy, ask my toaster.

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

    Default

    I've tried something similar to that but it didn't work - since there has to be a margin at the top of my DIV, meaning there would be a big space where one background is showing where it shouldn't be. I'm going to get on the PC in a minute and show you guys another picture which may help.

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

    Default

    I've just uploaded the picture.
    Last edited by MisturMan; 30-01-2010 at 01:25 PM.

  5. #5
    Join Date
    Jul 2004
    Location
    California
    Posts
    8,725
    Tokens
    3,789
    Habbo
    HotelUser

    Latest Awards:

    Default

    Quote Originally Posted by MisturMan View Post
    I've just uploaded the picture.
    Put a div around the entire thing with the background that's missing and then remove the background element from that bottom div/cell.
    I'm not crazy, ask my toaster.

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

    Default

    Yeah, that's what I done, however the top corners have rounded edges leaving there to be the background there which I do not want, there's also a margin at the top of the main container which makes the background go to the top - which looks awful.

    Trust me - I've tried everything I know.

  7. #7
    Join Date
    Dec 2006
    Posts
    1,236
    Tokens
    0

    Latest Awards:

    Default

    Use only 1 background image (that's all you can do anyway) and position the divs on top....

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

    Default

    Have you not seen my problem? I've got overlapping divs and I basically need the bottom div to ignore it.

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

    Default

    Despite trying various methods and 'hacks' - I decided to go for a different method which includes positioning - I've got a long night ahead of me getting this all right.

    Thanks all.

  10. #10
    Join Date
    Dec 2006
    Posts
    1,236
    Tokens
    0

    Latest Awards:

    Default

    From what I see there's a split background image because you're using two. You should only ever use one. Get that sorted out first then it'd be easy to tackle that.

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
  •