Padding and borders are added to the width. Is that the difference you are
seeing?

-Hector


On Fri, Nov 7, 2008 at 10:16 AM, nmiddleweek <[EMAIL PROTECTED]>wrote:

>
> hello,
>
> What is the best way to work out the real width of an object?
>
> I'm toggling the display:inline/none of a DIV and an INPUT field so
> one or the other is displayed but I've just check ed the visual
> appearance of the two objects and the DIV is not as wide. This will
> likely cause my interface to shuffle a little. it's a not a massive
> issue but is there a way of preventing this?
>
> I'm guessing that the INPUT field will also be rendered slightly
> differently on different browsers so not sure the best approach to
> solve it.
>
>
> Someone whispered the Dimensions plugin to me the other day but I
> can't remember why :)
>
>
> Cheers,
> N
>
>

Reply via email to