By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,648 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,648 IT Pros & Developers. It's quick & easy.

Widths question

P: n/a
Hi y'all

How do Gecko browsers and IE browsers differ in their calculation of
widths (both for block and inline elements? Is there a set formula for
this or is it pretty much a 'cross-browser test and see' problem?

Thanks.

Selena
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Selena Ulrich <se***********@dial.pipex.com> wrote in
<46************************@posting.google.com>
Hi y'all

How do Gecko browsers and IE browsers differ in their calculation of
widths (both for block and inline elements? Is there a set formula for
this or is it pretty much a 'cross-browser test and see' problem?


This might help:
http://css.maxdesign.com.au/listamat...t-boxmodel.htm
--
PeterMcC
If you feel that any of the above is incorrect,
inappropriate or offensive in any way,
please ignore it and accept my apologies.
Jul 20 '05 #2

P: n/a
Selena Ulrich wrote:
How do Gecko browsers and IE browsers differ in their calculation of
widths (both for block and inline elements? Is there a set formula for
this or is it pretty much a 'cross-browser test and see' problem?


CSS: Inline elements don't have width
IE[1]: Inline elements do have width

CSS: Width is width of content. Padding and border makes the space taken up
by the box bigger.
IE[2]: Width is width of content + padding + border.
[1] Might not apply in Standards Mode
[2] Does not apply in Standards Mode

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.