- From: Alex Mogilevsky <alexmog@exchange.microsoft.com>
- Date: Tue, 15 Jan 2008 21:36:47 -0800
- To: Andrew Fedoniouk <news@terrainformatica.com>
- CC: "www-style@w3.org" <www-style@w3.org>
It is an interesting alternative, similar to display:table/display:table-column. There is a precedent for elements that have no visualization but carry data for another element. I still have a preference to represent layout attributes purely in CSS language. It seems to be a better match to philosophy of CSS - you don't need to make any changes to semantic document to change its appearance... -----Original Message----- From: Andrew Fedoniouk [mailto:news@terrainformatica.com] Sent: Monday, October 01, 2007 10:42 PM I propose to: 1) drop grid-columns/grid-rows attributes all together. Introduce additional value to the display attribute - grid instead. (Better to use another attribute for child layout methods - like used to be 'display-model' or 'flow') ... Example, simple 2*2 grid with three cells, last one (in second row) spans two columns: <div style="display:grid"> <p style="left:1gr;top:1gr;"> 1.1 </p> <p style="left:2gr;top:1gr;"> 1.2 </p> <p style="top:2gr;"> 2 </p> </div> And famous content/sidebars example: <body style="display:grid"> <div style="top:1gr; left:1gr;"> left sidebar </div> <div style="top:1gr; left:3gr;"> right sidebar </div> <div style="top:1gr; left:2gr; width:1*;"> content </div> </div>
Received on Wednesday, 16 January 2008 05:37:14 UTC