I've got a list of items coming from a database:
<ul>
<li>Jon Skeet</li>
<li>Darin Dimitrov</li>
<li>Marc Gravell</li>
<li>BalusC</li>
<li>Hans Passant</li>
<li>SLaks</li>
<li>VonC</li>
<li>Greg Hewgill</li>
<li>JaredPar</li>
</ul>
The list will wrap when necessary, and each line should have horizontal lines, and look a bit like this:
____________________________________________________
Jon Skeet Darin Dimitrov Marc Gravell BalusC
____________________________________________________
Hans Passant SLaks VonC Greg Hewgill
____________________________________________________
JaredPar
____________________________________________________
However, I can't work out how to get the rows to have full-length lines, and so it looks like:
____________________________________________________
Jon Skeet Darin Dimitrov Marc Gravell BalusC
____________________________________________
Hans Passant SLaks VonC Greg Hewgill
__________
JaredPar
__________
I've tried using display:table-cell
, but I can't work out how to get them to wrap unless I know how many there should be in a row (which I don't).
I've prepared a jsfiddle to illustrate how far I've got, and what it should look like. Any suggestions?