You are here: Re: Padding issues « HTML « IT news, forums, messages
Re: Padding issues

Posted by Vince Morgan on 12/24/06 05:07

<grosberg.michael@gmail.com> wrote in message
news:1166908228.350980.128380@73g2000cwn.googlegroups.com...
> 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?
>
It won't help you, and it won't help me, but I realy do have to agree with
you in respect to padding. I think it breaks the encapsulation that a <div>
is supposed to represent entirely, and adds unwanted and perhaps even
unwarranted complexity.
It is very rare that you will see me agree with MS on such things, but on
this I do. Perhaps there were very good reasons for the current
implementaion. I certainly hope so.
Vince Morgan

 

Navigation:

[Reply to this 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

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