W3C home > Mailing lists > Public > www-style@w3.org > December 2011

RE: [css3-regions] [css3-Grid] auto-generation, pagination, and code examples

From: Rossen Atanassov <Rossen.Atanassov@microsoft.com>
Date: Fri, 9 Dec 2011 22:27:15 +0000
To: Håkon Wium Lie <howcome@opera.com>
CC: Chris Jones <cjon@microsoft.com>, Vincent Hardy <vhardy@adobe.com>, W3C style mailing list <www-style@w3.org>
Message-ID: <9A57384B9CE9AE4F9C01F3BB5C3D884408418F@TK5EX14MBXW601.wingroup.windeploy.ntdev.microsoft.com>
Hi Håkon,
> However, I think your code exposes several problems with the current approach
> to regions:
>  - the code is quite verbose

Again, this was what I could do in the few mins I had to spare on the issue and I wanted to keep the structure of the layout independent of any grid, template or multicolumn layouts.

> Here's a solution which gives the same layout in three lines of code:
>   article { columns: 3 }
>   img { column-span: 2; width: 100% }
>   .box1 { column-span: 2 }

Thanks, that's great and it is also yet another example of why columns of multicolumn layout should be regions.

>  > I'm refraining from using anything fancy such as grid, template etc.
> What would the code look like if you we using, say, grids?

Tab already answered this using the template layout syntax in a separate thread.

Received on Friday, 9 December 2011 22:28:01 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:07 UTC