i tried with position() too but it do not work anyway :(
On 27 mai, 16:12, Oskar Krawczyk <[email protected]> wrote: > Howdy! > > For starters, try using el.position() and not el.setPosition(). > > O. > > On 27 May 2009, at 21:08, jmeciar wrote: > > > > > hi guys !!!!! this is my first new message. just a little > > presentation, my name is jerome. i am a francophone from Montreal, > > Canada. i am a webdesigner and a integrator, a freelancer ! > > > i am trying to change a lot my current websitehttp://www.mind-rising.com > > > but i got few problems with the mootools framework. i am not a > > programmer, at all :P but more a designer :P > > > ok fiou ! > > > here's the problem. i try to set position of few relatives div with > > this ==>http://mootools.net/docs/more/Element/Element.PositionAND > > HEREhttp://www.clientcide.com/wiki/cnet-lib... ng-margins > > > but here we go, i use mootools 1.2 like everybody and here is my > > simple code > > > 1. > > 2. <div id="cont"> > > 3. <div id="tree_header" class="relative"></div> > > 4. <div id="me_header" class="relative"></div> > > 5. </div> > > 6. > > > and here is my .js > > > 1. > > 2. window.addEvent('domready', function() { > > 3. $('me_header').setPosition({ > > 4. relativeTo:$('tree_header'), > > 5. position:'topRight' > > 6. }); > > 7. }); > > 8. > > > but nothing happen. it is written on the official mootools website > > that my div must be in relative position, but it dont work more. > > > so i need a little help please :) > > > thks !!! > > > EDIT : this is the URLhttp://www.mind-rising.com/last/
