I don't have an answer, but I see the same is true for margin.
// tested in FF w/ firebug
$("#someElement").css("margin-left") // "0px"
$("#someElement").css("margin") // "undefined"
$("#someElement").css("margin", 0).css("margin") // "0pt 0pt 0pt 0pt"
Is jQuery simply returning what the browser returns? Is this consistent
across browsers?
Here's a related thread, talking about the same with border-color:
.css("border-color") returning undefined
http://groups.google.com/group/jquery-en/browse_thread/thread/9fdb1c44c2d9083f
- Richard
On 9/21/07, Piotr Sarnacki <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm playing around with css manipulation and I encountered strange
> problem. jQuery("#someElement").css("background") (or background-
> position) returns undefined, no matter if background-position is set
> or not :]
>
> background-image, background-color work fine :)
>
> Peter
>
>