I had heard that CSS can instead of html table? can you show me 2 rows 2 columns of CSS table? <table border="1" width="100%"> <tr> <td width="50%"> </td> <td width="50%"> </td> </tr> <tr> <td width="50%"> </td> <td width="50%"> </td> </tr> </table> HTML: thank you
DIVs can act as a table cell . But they will still need to be contained and are impractical for holding data , oh and you still need the HTML .
<style type="text/css"> div{ border:1px solid #000; width:49%; height:100px; } .left{ float:left; } .right{ float:right; } .clear{ clear:both; } </style> <div class="left"></div> <div class="right"></div> <p class="clear"></p> <div class="left"></div> <div class="right"></div>