:) ok, I think I expressed it wrongly actually, sorry for that - by cloning styles I mean copying the whole appearance of an element, including styles inherited from css, not only the style="" property of the element which - true - is copied when you use clone() . I also copy the 'appearance' of all element's children.
On Feb 23, 8:25 pm, Fábio M. Costa <[email protected]> wrote: > i still cant see why its not cloning the styles. > > another example: > > http://mootools.net/shell/9ND3r/ > > -- > Fábio Miranda Costa > Solucione Sistemas > Engenheiro de interfaces > > On Tue, Feb 23, 2010 at 11:18 AM, bootle <[email protected]> wrote: > > Hey, mhm weird, I replied in the morning and now I see the message > > disappeared.. > > > Anyway, styles are unfortunately not cloned, the element just inherits > > certain css properties depending on its parents, here's an example: > >http://mootools.net/shell/eqhfA/1/ > > What I want to do is to be able to move the element out of its > > container and preserve its appearance (that works, only there are a > > few problems I mentioned), that makes the element escape things such > > as wrappers with overflow:hidden and it is draggable around the whole > > page no matter the css/html structure > > > Your solution for float doesn't seem to work in IE8 either > > unfortunately (there's a js error), I'll try to fiddle more with that > > later on though > > > Cheers
