On 2/3/10 6:12 PM, Tim Hutt wrote:
Ah yes that works nicely, with one minor caveat: it seems to include
the width of the border if there is one, so you have to take that into
account. You're right, this is a better solution.

Ah, yes. Padding too. You could instead ask for the computed style width, but I'm not sure whether that does what it does in Gecko (return the actual used width) in all browsers.

It might be good to create some APIs to query these sorts of box properties. Anne, are you on this list, by chance? ;)

-Boris

Reply via email to