PDA

View Full Version : DIV's being pushed around.



Invent
07-08-2007, 10:20 PM
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:


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

redtom
08-08-2007, 08:12 AM
Do other div just move up or do they move to the left aswell some times?

Invent
08-08-2007, 12:48 PM
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.

Coldplay
09-08-2007, 09:38 PM
Why use partitions? It would be easier if you put things inside the div's

Invent
09-08-2007, 09:54 PM
What are you on about?..

Want to hide these adverts? Register an account for free!