Forum Moderators: not2easy

Message Too Old, No Replies

How to Create tables 12 columns x 3 rows?

         

PowerUp

8:55 am on Aug 27, 2006 (gmt 0)

10+ Year Member



Hi, is there a simpler way to create a table for 12 columns x 3 rows? The only way i know using css is to create 36 divs.

encyclo

12:47 pm on Aug 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You use a table - tables are still the correct way for displaying tabular data, it is just that it is better not to use them for layout. :)

JAB Creations

7:07 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Encyclo is absolutely correct but just in case you DO have need for a table for tabular data here it is and what to keep in mind...

Elements...
tr = table row
td = table data

Tabular data must initially be displayed within rows (left to right, then top to bottom English/?Latin language form of thought.

<table>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>

- John

PowerUp

1:38 pm on Aug 28, 2006 (gmt 0)

10+ Year Member



Thank you guys. Looks like css cannot completely replace the use of tables =)

stoopertrooper

9:25 am on Aug 29, 2006 (gmt 0)

10+ Year Member



You are correct it was never intended to display tabular data. CSS purpose was to make tables used for ... well tables.

ChrisBolton

12:41 am on Aug 31, 2006 (gmt 0)

10+ Year Member




I believe that CSS can replicate anything tables can do, but in the case of tabular data, CSS would carry far more page weight than the <td> tag.

Chris.

doodlebee

8:36 pm on Aug 31, 2006 (gmt 0)

10+ Year Member




Looks like css cannot completely replace the use of tables =)

It's not supposed to :)