svibuk — 2011-08-08T05:07:21-04:00 — #1
i need to add data in a table format ie column & row , instaed of using<table></table> can it be done using div as using table may not be displayed properly in all browsers
i have 7 columns & 15 rows
or a div in a <td> wuld be good
paulob — 2011-08-08T07:07:11-04:00 — #2
If its tabular data it should go in a table and there should be no problem with it displaying unless you are doing something weird to it.
baylisstic — 2011-08-08T09:18:28-04:00 — #3
I'm with Paul here, it should go in a table if it is tabular data and there certainly shouldnt be any display problems.
oddz — 2011-08-08T18:36:10-04:00 — #4
Sounds like a list of content such as a grid of products. In that case a list would be the way to go alongside CSS to accomplish the desired design goals.
webcosmo — 2011-08-09T11:16:01-04:00 — #5
Table should display fine as long as you code right.
Many prefer using div over table mainly because of the loading nature on the browser. Table isnt rendered on the page until the entire content is cached, whereas using divs allow the browser to render piece by piece.
Some people find it easier to code with table then div of course.
black_max — 2011-08-18T02:30:21-04:00 — #6
If you're talking about tabular structures for an entire site, that's long outdated and never, ever recommended as good practice.
felgall — 2011-08-18T22:18:46-04:00 — #7
In most instances neither a table nor a div is the appropriate tag to use.
What you need to ask yourself is what the most appropriate tag is to match with what the content actually is. When the content is tabular data to be set out in a tabular format is the only time that a table is the right choice. The only time a div is the right choice is when there is no othet HTML tag that describes what the content is.
With what the OP is asking about tha right tag to use would either be a table - if it genuinely is 15 records each having the same zeven fields that you want to display - or if it isn't tabular data then the most likely possibility is that it is a list.