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
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
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
3 matches
Mail list logo