Welcome to WebmasterWorld Guest from 54.159.12.17

Forum Moderators: incrediBILL

Message Too Old, No Replies

Creating tables

     

FNread

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



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 swa66 is a WebmasterWorld Top Contributor of All Time 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 lucy24 is a WebmasterWorld Top Contributor of All Time 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>
 

Featured Threads

Hot Threads This Week

Hot Threads This Month