Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Creating tables

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

New User

joined:Feb 17, 2013
votes: 0

How to create table only using <div> tag and Css without using <table>tag
3:18 pm on Feb 17, 2013 (gmt 0)

Senior Member

WebmasterWorld Senior Member swa66 is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 7, 2003
votes: 0

If it's tabular data, you really should use a <table> tag. Using <div>'s where a table is warranted makes it worse.
11:40 pm on Feb 17, 2013 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
votes: 403

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.)
9:46 am on Apr 18, 2013 (gmt 0)

New User

joined:Apr 17, 2013
votes: 0

May be, you can use like :

<div id="table">

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members