I don't see anything here that isn't working as it's supposed to.

In CSS, position:relative is not relative to the div's parent (that's  
position:absolute, if the parent is also positioned)--so as the  
document flow changes, the div position would naturally change as well.


TAG

On Aug 7, 2007, at 4:14 PM, Simon wrote:

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


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to