Reply to Re: Padding issues

Your name:

Reply:


Posted by grosberg.michael on 12/24/06 09:51

Jukka K. Korpela wrote:
> Scripsit grosberg.michael@gmail.com:
>

> > 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.
>
> That would be common logic, but as others have explained, people who
> designed CSS took a different view. Moreover, Microsoft didn't agree in
> practice, causing much confusion, though this is now being cleared up,
> slowly.

Ah well. Thanks for the feedback everybody. I'm not going on a crusade
on this - I guess I can work with it the way it is.

> > Worse still, in firefox, padding
> > in table cells is added to the left and right sides but not to the top
> > and bottom!
>
> Are you sure? URL?

Umm, test this (I found it on firefox 2):

<html>

<head>
<title>test</title>
</head>
<body>
<table>
<tr>
<td style="width: 200px; height: 200px; background-color: cyan;
vertical-align: top; padding: 50px">sample text
</td>
</tr>
</table>
</body>
</html>

[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

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