
Originally Posted by
DoubleDee
When I hovered over #boxComments in NetBeans/FireBug I saw Computed Box Model = 640px
But when if I switched to the Layout tab, I saw the center box is 640x405 and then surrounded by 20px of padding and 1px of border. So that implies my actual width should be 682px?! So which one is right?! Those two tabs seem to contradict each other...
[/QUOTE]
There is no contradiction there. The (css property) "width" is 640px. The padding and borders are outside the width and add to the total size of the element. ("width" refers to the css property "width" and not a general width of an element.)
The width of an element is simply whatever you have defined "width" to be (assuming you are not using an auto width container). Any padding and borders should be added to this width to find the whole space that the element takes up on the page.
Off Topic:
Please do not resort to name calling as Ryan was only trying to help by suggesting testing yourself first and you could have easily replied saying you had done that but didn't understand the results rather than teh whole thing escalating into a public argument.
Bookmarks