> I found a solution to get the border width in pixels independent > from how its assigned. Check the source code at > http://sorgalla.com/test/borders.html
Wow, I missed that...it's like the same swap trick John used to get element width and height. This should also work for padding, but not for margins. I guess you could temporarily wrap the element in another div and measure that. Now the question is, should .css() return a string with units or other special name, and .curCSS always return pixels as a number (instead of a string)? Or should we do it some other way? _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
