G
grosberg.michael
Please help me understand something about padding: As far as I know,
padding is supposed to be on the "inside" of an element. Common logic
would imply, therefore, that if you assign an element a certain height
and width, and also give it a padding through CSS, then the element
would retain its stated size and render the content in a smaller area
(size minus the padding) inside the element.
But I just found out that is not the case! In bth Firefox and Explorer
padding is added to the stated size . Worse still, in firefox, padding
in table cells is added to the left and right sides but not to the top
and bottom!
Is that how these things are supposed to behave?
padding is supposed to be on the "inside" of an element. Common logic
would imply, therefore, that if you assign an element a certain height
and width, and also give it a padding through CSS, then the element
would retain its stated size and render the content in a smaller area
(size minus the padding) inside the element.
But I just found out that is not the case! In bth Firefox and Explorer
padding is added to the stated size . Worse still, in firefox, padding
in table cells is added to the left and right sides but not to the top
and bottom!
Is that how these things are supposed to behave?