Re: Grid layouts and zIndex.

>It's been discussed a number of times about grid layout systems, and their
>desirability, has anyone considered how this might be squared with the
>current painters model, which necessitates content appearing above another
>element be specifies later in the stream than content below.

As far as I understand grid layout,
the point is to have objects without
X and Y attributes.

In other words having

<xhtml:table>
<xhtml:tr><xhtml:td>
<!-- NOTICE: NO X, NO Y on use -->
<use xlink:href='#object'/>
</xhtml:td></xhtml:tr>

<xhtml:tr><xhtml:td>
<!-- NOTICE: NO X, NO Y on rect -->
<rect style='fill:#101212' width='10' height='10'/>
</xhtml:td></xhtml:tr>

<xhtml:tr><xhtml:td>
<!-- NOTICE: NO X, NO Y on g -->
<g id='b'>
<!-- NOTICE: Have X,Y on use
     so we can offset it from the grid a bit  -->
<use xlink:href='#object' x='4' y='6' />
</g>
</xhtml:td></xhtml:tr>

</xhtml:table>

if you want superposed images use
<g id='object'>
  ... stuff with X,Y
</g>

then simply <use> it offset.

Tell me now where is the problem
with your grid, painting layers
or 3D grid thing?

>This means that simple grid mechanisms will prevent us from doing this as 
>we
>do not know the location of the items undersneath and we'd need a 3 
>dimensional grid.  The other option is of course to throw away the painters 
>model, and have full z-index control when each grid element can then be 
>appropriately laid out.  That's quite a change though...

>Jim.


Fred.



_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*   
http://join.msn.com/?page=features/junkmail

Received on Wednesday, 23 April 2003 03:13:04 UTC