Alexandre Plennevaux wrote:
> hello,
>
> i would like to set the css property "padding-left". So far it fails.
> I can assign a value to "padding", but not to "padding-left". Can
> you explain me how?
> does jquery support css shorthand (padding:0 0 0 5px) ?
One thing I noticed when dealing with $().css() is that the attribute
must be encased in quotes if it contains a non alpha character (e.g. the
hyphen). For instance;
$(e).css({color: 'black'}); // works
$(e).css({z-index: 50}); // NOT works
$(e).css({'z-index': 50}); // works
This may be related to why "padding-left" is not working.
~ Brice
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/