|
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>
Navigation:
[Reply to this message]
|