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

rows with display:table

From: Manuel Strehl <manuel.strehl@stud.uni-regensburg.de>
Date: Thu, 28 Jul 2005 21:12:27 +0200
Message-Id: <s2e94a47.041@gw.ngate.uni-regensburg.de>
To: <www-style@w3.org>

Hi there.

Concerning display:table-...: I've got a <ul> with, say, 20 <li>s and I want it to be displayed as a 4 x 5 table. Is there any possibility (theoretically AND/OR usable with actual browser support) to realize that with CSS?
I thought of sth. like:

ul :nth-child( 4n ) :before { display:table-row }

would that work (for I can't test due to lacking browser support :-( )? 


Manuel Strehl
Received on Thursday, 28 July 2005 19:12:51 GMT

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