Forum Moderators: open

Message Too Old, No Replies

Creating tables

         

FNread

2:58 pm on Feb 17, 2013 (gmt 0)

10+ Year Member



How to create table only using <div> tag and Css without using <table>tag

swa66

3:18 pm on Feb 17, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If it's tabular data, you really should use a <table> tag. Using <div>'s where a table is warranted makes it worse.

lucy24

11:40 pm on Feb 17, 2013 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



div.row {display: table-row;}
div.cell {display: table-cell;}


But like swa said, why would you want to? Unless you're in the Counterweight Group. The large number of people using tables for layout are counterbalanced by a small number who have been so terrorized by the Don't Use Tables directive that they won't use tables even when they are clearly warranted.

And that's speaking as someone who has only just exercised heroic self-control by taking a text with three parallel translations and not formatting it as a three-columned table. (Two, and it would have been a table. Three, and width constraints won out.)

Rose_Marry

9:46 am on Apr 18, 2013 (gmt 0)



May be, you can use like :

<div id="table">
<table>
<tr>
<td>abc</td>
<td>xyz</td>
</tr>
<tr>
<td>abc</td>
<td>xyz</td>
</tr>
</table>
</div>