('#div').width problem with typeface.

('#div').width problem with typeface.

Hi,

I'm trying to ascertain the width of a DIV using jQuery.

Problem is that it's using the default typeface sanserif to compute the width. It gets the font size correct but not the typeface.

This means that once displayed with the new typeface, the DIV is a different width to the one jQuery gave me.