- From: Markus Jonsson <carnaby@passagen.se>
- Date: Thu, 25 Aug 2005 14:45:36 +0200 (MEST)
- To: <www-html@w3.org>
>Again, this is behavioural, and can be done reasonably simply using >JavaScript. It does not belong in XHTML or CSS. > >Jasper I don't know what behavioral means in this context, but maybe you misunderstood my request. The primary idea was not that dimensions should change after the page has loaded, only while the document is being constructed. Imagine you want to make a presentationlike this, where the A and B should be equally wide: ================================ | 1A[textTe] | 1B[textText] | ================================ Paragraph with text that may span outside the boxes ================================ | 2A[text] | 2B[textTe] | ================================ Another paragraph with text that may span outside the boxes ================================ | 3A[textText] | 3B[text] | ================================ Apart from that this is layout rahter than tabular data, it would be complicated to achieve with tables anyway. It could be easy to achieve with css, if you were able to set absolute widths for [123]A and [123]B. But if you want flexibility to allow those two "columns" to be of any length depending on the text, it's not so easy. However, if you assign all [123]A to css class 'left', and all [123]B to css class 'right', and then could say in css: .left { width-size-group: foo } .right { width- size-group: bar } - they would be eqally wide based on the widest in their group, just like table-cells may grow as new rows are added. Having such a function in css wouldn't necessarily imply that it should work also after the document has loaded. IMHO this is not a case where developer should be resorted to use JavaScript. Markus
Received on Thursday, 25 August 2005 12:45:56 UTC