[jQuery] Re: element.css("background") returns undefined

2007-09-21 Thread Richard D. Worth
Here's some more info: http://www.w3.org/TR/CSS21/box.html#propdef-margin > The 'margin' property is a shorthand property for setting 'margin-top', > 'margin-right', 'margin-bottom', and 'margin-left' at the same place in the > style sheet. (emphasis mine) on the same page, the inital value is

[jQuery] Re: element.css("background") returns undefined

2007-09-21 Thread Richard D. Worth
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

[jQuery] Re: element.css("background") returns undefined

2007-09-21 Thread Giuliano Marcangelo
Piotr, backgroundis a general term, within which we can have -color -image -position -position-x -position-y -repeat untested, but I would suggest that color, image, repeat will all work...as would position-x and position-y.just need to be more specific On 21/09/2007, Piotr Sarnacki <[EM