943,816 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Jul 4th, 2004
0

web design: tables versus divs

Expand Post »
A lot of web developers are strongly opinionated that divs should be used for design and tables for tabular data, but I am still not entirely convinced that website designers should jump on it yet. I haved designed web sites using both, and in my experience I have found that carefully using tables produces more cross browser compatible designs than using divs carefully. Does anybody have any strong evidence or convictions on either side of the fence for this argument?
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Jul 4th, 2004
0

Re: web design: tables versus divs

With divs, people can't steal your images if you use
HTML and CSS Syntax (Toggle Plain Text)
  1. style="background-image:url('/temp/img.jpg');"
unless they really want to

In my (about 5) websites, I find that divs load faster, but that's probably just my head. Tables for layouts are frowed upon by the most hard core "standards" people. I dunno, I started learning HTML with XHTML 1.0 Strict, and now I use 1.1, so I guess you could say I never did dabble in table layouts. Anyways... nuff babbling, I say divs
Reputation Points: 10
Solved Threads: 1
Newbie Poster
Innocent is offline Offline
5 posts
since Jul 2004
Jul 4th, 2004
0

Re: web design: tables versus divs

I also agree that divs load faster. People can steal your images either way Table people can use table background="/temp/img.jpg" - In any case, I still say divs. The DaniWeb header, footer, and nearly all of the homepage are all div tags. Anyone find it not cross-browser compatible? Personally I feel that I can do more nifty things with div/css than I could do with tables to make it MORE cross-browser compatible
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Jul 6th, 2004
0

Re: web design: tables versus divs

im a tables man myself, i feel i can design just as good with them as i can with div's, but i dont do div's that much so i dunno. i think ill give div's a go and make a better educated desicion later. OFF TO CODE SOME MORE!!!!
Reputation Points: 152
Solved Threads: 39
Master Poster
Killer_Typo is offline Offline
778 posts
since Apr 2004
May 4th, 2010
0
Re: web design: tables versus divs
Thank you for posting this topic. I am curious as well. I have always used tables and grew very fond of them as I can do just about anything I want with them and their contents. Though, since I have been studying a bit about CSS the past few days I'm seeing a wider versatility with the CSS, and possibly divs. Though, as yet, I haven't tried using either one. So, I'm still on the fence about things.
Reputation Points: 10
Solved Threads: 1
Light Poster
Kaycy is offline Offline
29 posts
since Apr 2010
May 4th, 2010
0
Re: web design: tables versus divs
tables for tabular data,
luv javascript tablesort routines view data any which way
but I use css to style the table,
and use tables for tables not for layout of anything else
Reputation Points: 562
Solved Threads: 368
Posting Maven
almostbob is offline Offline
2,970 posts
since Jan 2009
May 6th, 2010
0
Re: web design: tables versus divs
Thank you. That helped even better to understand the usage of tables/css.

Click to Expand / Collapse  Quote originally posted by almostbob ...
tables for tabular data,
luv javascript tablesort routines view data any which way
but I use css to style the table,
and use tables for tables not for layout of anything else
Reputation Points: 10
Solved Threads: 1
Light Poster
Kaycy is offline Offline
29 posts
since Apr 2010
May 6th, 2010
0
Re: web design: tables versus divs
I'm all for divs. Tables should only be used for tabular data (as has been said many times above). I find divs A LOT more flexible that tables, and also a lot easier to look at in the code side of things.

I work for a place that creates and maintains about 100 or so sites, and when I have to make any structural changes to the older (tabled) sites, its a nightmare. Half the time I can't see when something begins and when it ends. I don't think it helps either that many of them were created in Dreamweaver (shutters).
Reputation Points: 10
Solved Threads: 5
Junior Poster in Training
laura_ci is offline Offline
72 posts
since Jun 2009
May 6th, 2010
0
Re: web design: tables versus divs
DIVs are OK in theory, but I think they can be overdone. Hundreds of nested divs (or divitis), to me is almost as bad as using tables. I like to see sensible markup that isn't linked to presentation. Very often divs are used unnecessarily, e.g. for navigation, you'll sometimes see a <div id="nav">...</div>, when often all you need is something like a <ul id="nav">...</ul>. THat's just my opinion though.
Sponsor
Featured Poster
Reputation Points: 1048
Solved Threads: 947
Sarcastic Poster
ardav is offline Offline
6,684 posts
since Oct 2006
May 7th, 2010
0
Re: web design: tables versus divs
YEAH DIVS!!!! they are the best thing since sliced bread! the only time i use tables is when i'm busy with a client reporting project (once again, that is only for the stats, but the whole site is basically divs). Divs give you that extra that you don't get from tables. Besides that, crawlers finds it easier to read div tags than tables (or so i read).

To find the edge, use divs!
Last edited by MJ Pieterse; May 7th, 2010 at 5:06 am.
Reputation Points: 13
Solved Threads: 18
Junior Poster
MJ Pieterse is offline Offline
144 posts
since Mar 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in HTML and CSS Forum Timeline: How make a cool-looking navbar?
Next Thread in HTML and CSS Forum Timeline: IE and Firefox whitespace problem....





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC