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