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), and subtract 24px so that div#lt.left =
> div#content.left - 24px:
>
> $("div#lt").css("left", eval(parseInt($
> ("div#content").css("left"))-24));
>
> The problem is, I can't get it to happen. I've tried a lot of
> different ways, including the above, but might have missed an obvious
> one?
>
> Thanks!
>

Reply via email to