> So, if <div id="container"> is 500px tall:
> -- $('#container).css('height') == "500px"
> -- $('#container).height() == 500
>
> Oh, and thanks to Brandon for mentioning about .height() being a  
> setter, too.
>   
In addition to that, css() converts any values given as Numbers to 
Strings, so you can do both:

$(...).css("height", "500px")
$(...).css("height", 500)

Both are useful: When you retrieve one value via css and have a string 
with pixel, you can set it to another style or element. And it also 
works for "top" or whatever style accepts a pixel value.

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to