Reply to Re: Padding issues

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация