[jQuery] Re: Computing value for css key

2008-02-11 Thread Alexey Blinov
Hi.I think you should add "px" to the new value. Something like this: $("div#lt").css("left", parseInt($("div#content").css("left"))-24+"px"); On Feb 5, 2008 2:05 PM, praxis <[EMAIL PROTECTED]> wrote: > > Hi! > > I'm trying to position a div, #lt, absolutely in relation to another > div (#content

[jQuery] Re: Computing value for css key

2008-02-06 Thread Hsiu-Fan Wang
In this case would it be possible to use offset? (http://docs.jquery.com/CSS/offset) On Feb 6, 2008 12:30 AM, Charles K. Clarkson <[EMAIL PROTECTED]> wrote: > > praxis wrote: > > : $("div#lt").css("left", eval(parseInt($ > : ("div#content").css("left"))-24)); > : > : The problem is, I can't get i

[jQuery] Re: Computing value for css key

2008-02-06 Thread Charles K. Clarkson
praxis wrote: : $("div#lt").css("left", eval(parseInt($ : ("div#content").css("left"))-24)); : : The problem is, I can't get it to happen. ("div#content").css("left") may be returning "auto" instead of a dimension. Can you provide an example page that illustrates the problem? HTH, Charle