D
David Graham
Hi
I have been to a website were I got the following advice
"Borders and Margins are supposed to be measured *outside* the box. IE 5.x
for Windows messes this up by saying that if you have a 500 x 200 box, and
you add 10px padding, 10px margin, and 2px border, the content inside will
only have 458x158 to squeeze into"
I think the margin is irrelevant - IE 5.x puts the border and padding within
the box, therefore the available space for the content would be:
500 - 2(- 10 -2) = 500 - 24 = 476px width
200 - 2(-10 -2) = 200 - 24 = 176px height
Do I have this correct, or do I need to think again about this issue
thanks
David
I have been to a website were I got the following advice
"Borders and Margins are supposed to be measured *outside* the box. IE 5.x
for Windows messes this up by saying that if you have a 500 x 200 box, and
you add 10px padding, 10px margin, and 2px border, the content inside will
only have 458x158 to squeeze into"
I think the margin is irrelevant - IE 5.x puts the border and padding within
the box, therefore the available space for the content would be:
500 - 2(- 10 -2) = 500 - 24 = 476px width
200 - 2(-10 -2) = 200 - 24 = 176px height
Do I have this correct, or do I need to think again about this issue
thanks
David