|
Posted by Roy A. on 01/14/07 18:12
William skrev:
> Hello all,
>
> I hope someone can help me. I got a problem where some table layout
> won't work the way it's supposed to work, using rowspan. It's hard to
> explain, but in the example I give you below, there's 3 TDs, the right
> and left TD have a rowspan of 2, and the middle TD have a rowspan of 1,
> and the first row should have 16 pixels, and second row whatever height
> the page requires. But it seems that depending on the left or right TD
> height, it affects the height of my middle top TD, which is supposed to
> be fixed at 16 pixels. Anyway, this example should explain it all. Is
> there a way to make that tow middle TD fixed at 16 pixels? It works fine
> with Firefox, but not with Explorer.
>
>
> <html>
> <head>
> </head>
> <body>
> <table border="0" cellpadding="0" cellspacing="0">
> <tr>
> <td width="100" rowspan="2">
> <table border="0" cellpadding="0" cellspacing="0">
> <tr>
> <td>
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> </td>
> </tr>
> </table>
> </td>
> <td width="900" height="16">Should always have 16 pixels height,
> but doesnt on Explorer</td>
> <td width="100" rowspan="2">bbbb</td>
> </tr>
> <tr>
> <td width="900">
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> <br>
> sahdfhs
> </td>
> </tr>
> </table>
> </body>
> </html>
IE is unable to do it in that way, at least without MSHTML. In HTML it
is not defined how row heights are calculated when a TD span more than
one row. Diffrent browsers could render the table diffrently. Most
browsers would do what you could expect, but some browsers may render
it useless.
The exact height of the rows could, as all ready pointet out, dependt
one how you define the word 'height'.
Navigation:
[Reply to this message]
|