|
Posted by Ed Seedhouse on 12/23/06 22:31
On 23 Dec 2006 13:10:28 -0800, grosberg.michael@gmail.com wrote:
>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 .
>Is that how these things are supposed to behave?
It is how CSS is specified. Padding and borders are to be added to
width. IE5 and below and IE6 in quirks mode do it the "wrong" way,
which, to you, is the "right" way.
If you want to take it up with the people who made the specification
feel free. You might find that they had actual reasons for doing it
that way, they usually do.
Navigation:
[Reply to this message]
|