ul/li to table (with good styling)

Posted by user584018 on Stack Overflow See other posts from Stack Overflow or by user584018
Published on 2012-12-11T17:01:11Z Indexed on 2012/12/11 17:03 UTC
Read the original article Hit count: 139

Filed under:

I have ONLY one <UL> and under that we have group of <LI>

 <ul>
   <li>1<li>
   <li>2<li>

   <li>3</li>
   <li>4<li>

 </ul>

now I wanted to show them as TABLE, please help me with CSS, how can we show as a TABLE for above UL/LI in below table format, 2 LI set in one TR (two TD) and so on....

<html>
<table border="1">
<thead>
<th>col1</th><th>col1</th>
</thead>
<tr><td>1</td><td>2</td></tr>
<tr><td>3</td><td>4</td></tr>
</table>
</html>

© Stack Overflow or respective owner

Related posts about css