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
  1. #1
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default DIV's being pushed around.

    Hi,I have a page with around a dozen DIV Layers, all 'relatively' positioned. My issue is when one layer is "deleted" (By this I just mean the DIV Layer's 'display' is changed to 'none'), the other DIV Layers move up.

    I don't understand why this happens. The only time it doesn't happen is when I use the Javascript "new Insertion.Bottom".I use this in my script, but this creates another issue which you can read about below.

    When I use "new Insertion.Bottom("div", content)", all the other DIV's get pushed down as a new one has been added.

    Do you have any ideas of how I can stop this from happening?

    Thanks
    Simon

    P.S: An example of one of the DIV's is:
    Code:
    <div id="sticker-1" title="1" class="sticker_cactus" style='position: relative; left: 54px; top: 190px; z-index: 317; ' onClick="zIndex(this);"><img src="store/images/ delete_entry_button.gif" align="right" href="#"  onclick="remove_sticker('sticker-1');" /></div>

  2. #2
    Join Date
    Jul 2005
    Location
    North Wales
    Posts
    4,233
    Tokens
    1,544

    Latest Awards:

    Default

    Do other div just move up or do they move to the left aswell some times?

  3. #3
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Don't worry, Before I posted on here, I posted on the Scriptaculous Wiki, they have sorted out my problem.

    +REP for trying to help.

  4. #4
    Join Date
    Dec 2006
    Posts
    3,369
    Tokens
    0

    Latest Awards:

    Default

    Why use partitions? It would be easier if you put things inside the div's
    PM me for help.



  5. #5
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    What are you on about?..

Posting Permissions

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