homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

Creating tables

Msg#: 4546293 posted 2:58 pm on Feb 17, 2013 (gmt 0)

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



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

Msg#: 4546293 posted 3:18 pm on Feb 17, 2013 (gmt 0)

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


WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

Msg#: 4546293 posted 11:40 pm on Feb 17, 2013 (gmt 0)

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.)


Msg#: 4546293 posted 9:46 am on Apr 18, 2013 (gmt 0)

May be, you can use like :

<div id="table">

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved