Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1087 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     HTML/XHTML/DHTML/CSS :

What is better to use? "div" or "tables"

Thread title: What is better to use? "div" or "tables"
Reply  
Page 2 of 7 < 1 2 3 4 5 6 >
    Thread tools Search this thread Display Modes  
03-12-2009, 05:49 PM
#11
ditch182 is offline ditch182
Status: Junior Member
Join date: Jul 2008
Location: NC
Expertise:
Software:
 
Posts: 70
iTrader: 0 / 0%
 

ditch182 is on a distinguished road

  Old

Tables aren't necessarily bad. They are useful for displaying data that is inherently tabular. That being said, they were never meant for layout, and can cause trouble with accessibility.

Reply With Quote
03-13-2009, 05:57 AM
#12
rkquest is offline rkquest
rkquest's Avatar
Status: I'm new around here
Join date: Nov 2008
Location:
Expertise:
Software:
 
Posts: 18
iTrader: 0 / 0%
 

rkquest is on a distinguished road

  Old

For layouts - divs, for tables - well, tables.
The reason divs are better when doing layouts is because you can use CSS to position and style them easily. That means, you site can have a totally different look and layout just by changing the CSS without touching the HTML code. You can't do that with tables.

Reply With Quote
03-13-2009, 10:34 AM
#13
designbyblend is offline designbyblend
Status: I'm new around here
Join date: Mar 2009
Location:
Expertise:
Software:
 
Posts: 8
iTrader: 0 / 0%
 

designbyblend is on a distinguished road

  Old

It took me a while to make the jump from tables to tableless, but ever since I haven't looked back. My pages load quicker, I have more control over the design (this may not seem so at first) and it was quite simply part of my obligation as a designer to make the switch to be standards compliant.

Not only does it improve your own personal skills, it also looks better in terms of employment - actually, it's pretty much all that's accepted these days : )

Reply With Quote
03-14-2009, 07:57 PM
#14
LiquiMedia is offline LiquiMedia
Status: I'm new around here
Join date: Mar 2009
Location:
Expertise:
Software:
 
Posts: 7
iTrader: 0 / 0%
 

LiquiMedia is on a distinguished road

  Old

Tables - as the name says, it is used for displaying tabular data. The entire layout is not tabular data. Thats why div and CSS exists.

Reply With Quote
03-14-2009, 08:06 PM
#15
Andrew R is offline Andrew R
Status: Request a custom title
Join date: Dec 2005
Location: Arizona
Expertise:
Software:
 
Posts: 5,200
iTrader: 17 / 95%
 

Andrew R is on a distinguished road

  Old

Originally Posted by Cushioned View Post
DIVs all the way. It is the newest type of HTML out there -> XHTML

It requires the knowledge of CSS, but is substantially better.
-Quicker load times
-Easier to understand
-Tables weren't meant for layouts -> Meant for holding data
-Far less errors
-Neater code
And many other reasons.

Professional companies keep away from tables and stick to the newest and most efficient type of coding out there.

Hope this helps!
-Cushioned
There is so much wrong with this post, I'm not sure where to start.

First of all, yes, XHTML is the new 'version' of HTML, however, divs are not exclusive to XHTML as your post makes it seem.

"Far less errors" isn't necessarily true. I've seen relatively valid table sites, and absolutely horrible tableless sites with dozens to hundreds of errors. It is how you write your code, not what you use.

"Professional companies" is very subjective. There are some very large, professional, multi-million/billion dollar companies that still use tables for their websites (even some that are web based). Have you ever looked at the source code of Amazon? Sure, they use tables for tabular data in all proper instances, however, they have other tables used for layout all over the site.

--

Back to the OP question, I highly recommend using tableless over tables. You can do some googling, or read some other posts to get of an idea why. No sense in writing stuff that's written hundreds of other times all over this and other websites.

Reply With Quote
03-20-2009, 08:13 PM
#16
sitemile is offline sitemile
Status: Junior Member
Join date: Mar 2009
Location:
Expertise:
Software:
 
Posts: 59
iTrader: 0 / 0%
 

sitemile is on a distinguished road

  Old

totally DIV-s with CSS.
Taables are good too but just in some cases.

Reply With Quote
03-25-2009, 05:59 AM
#17
weblover50 is offline weblover50
weblover50's Avatar
Status: I love this place
Join date: Jan 2009
Location:
Expertise:
Software:
 
Posts: 617
iTrader: 0 / 0%
 

weblover50 is on a distinguished road

  Old

always "table" is better then "div"

Reply With Quote
03-27-2009, 01:01 PM
#18
xmysteriox is offline xmysteriox
Status: I'm new around here
Join date: Mar 2009
Location:
Expertise:
Software:
 
Posts: 9
iTrader: 0 / 0%
 

xmysteriox is on a distinguished road

  Old

DIV's exist for layout structurizing and Tables exist for listing data .. pretty self-explainitory.

Reply With Quote
04-06-2009, 03:27 AM
#19
hue is offline hue
Status: Junior Member
Join date: Apr 2007
Location:
Expertise:
Software:
 
Posts: 44
iTrader: 0 / 0%
 

hue is on a distinguished road

  Old

Tables can recreate any div-based layouts effortlessly.

The difference in file size is barely noticed so the loading speed isn't much a difference.

Cleaner code? That just makes it easier to steal.

Besides, all the DIV-lovers on this site create the same "wordpress-like" layout over and over. It's become ridiculous.

Use what's easier for you. It all works.

Reply With Quote
04-06-2009, 04:43 AM
#20
Jabster is offline Jabster
Status: Junior Member
Join date: Dec 2008
Location:
Expertise:
Software:
 
Posts: 75
iTrader: 7 / 100%
 

Jabster is on a distinguished road

Send a message via MSN to Jabster

  Old

DIV's are the way to go. I used to use tables before knowing any better and since I started using DIV I've never gone back. Table are not made for layouts, rather data display. DIV is cleaner, easier to read and the just "work".

Clean and messy code doesn't make any difference as to how easy a design is to steal. Its just a matter of a using a visual editor. A person who writes messy code is not a good coder. I'm a DIV-lover however I have never made a wordpress layout and will never intend to. DIV and Wordpress have nothing to do with each other just so you know. DIV's are found in most websites today and only more older websites still use tables. Useing tables for layout is like putting ethonal in an unleaded engine only... it will work for a small amount of time however it break very shortly after. DIV is much more flexible.

Reply With Quote
Reply  
Page 2 of 7 < 1 2 3 4 5 6 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed