W3C home > Mailing lists > Public > www-style@w3.org > July 2005

Re: rows with display:table

From: Allan Sandfeld Jensen <kde@carewolf.com>
Date: Fri, 29 Jul 2005 12:50:08 +0200
To: www-style@w3.org
Message-Id: <200507291250.08449.kde@carewolf.com>

On Friday 29 July 2005 12:31, Manuel Strehl wrote:
>  >You might get close to what you want with
>  >
>  >  ul {width: 100%;}
>  >  li {width: 25%; float: left; display: block; margin: 0; padding: 0;}
>
> Thanks alot, that'll work.
>
> But asking again out of principle: Is there a possibility to achieve
> this by using display:table-row?
>
No. Cells needs to be children of a row, not siblings. So to use 
display:table-row you would need 5 elements with 4 children. So a plain list 
can only be made into a table with 1 row.

`Allan
Received on Friday, 29 July 2005 10:50:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:39 GMT