Re: CSS: %% length unit. Proposal. Some clarifications.

> An example, plain old HTML:
>
> <table width="500">
>    <tr>
>      <td width="100" id="1"></td>
>      <td width="100%" id="2"></td>
>      <td width="200" id="3"></td>
>    </tr>
> </table>
>
> In this case cell 1 will span 100 pixels, and cell 3 will span 200. Cell
> 2 will use up what is left.

Max, are you kidding me?! This what you will expect as a human :) But
practice is little bit different.
Try this in Mozilla or IE :)))))))

If you will put here %%
<table width="500">
   <tr>
     <td width="100" id="1"></td>
     <td width="100%%" id="2"></td>
     <td width="200" id="3"></td>
   </tr>
</table>

You will get exactly yours "In this case cell 1 will span 100 pixels, and
cell 3 will span 200. Cell
2 will use up what is left."

>
> You are correct that this is not the way the rest of the box model
> works, but (as was also mentioned earlier) tables predate CSS, and have
> been introduced as is through their respective CSS properties.
>

Exactly!

Andrew Fedoniouk.
http://terrainformatica.com

Received on Monday, 10 May 2004 02:32:48 UTC