×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

tables vs. div tags - advantages/disadvantages
2

tables vs. div tags - advantages/disadvantages

tables vs. div tags - advantages/disadvantages

(OP)
I've noticed that the "new" way to design websites is to use the div tags for placement of content/headers/navigation. What is the advantage of using a div tag vs. using tables for more precise placement?

RE: tables vs. div tags - advantages/disadvantages

1. Divs are semantically correct, so easier for search engines to evaluate.
2. Divs are easier to layout accurately, especially with dynamic layouts.
3. Div layout is easier to understand and maintain.

I notice that you have asked 12 questions in these forums, but haven't marked a single answer as being valuable. If you didn't get valuable answers try FAQ222-2244: How to get the best answers to help with better questions. If you did get valuable answers read FAQ222-2244: How to get the best answers to see how to acknowledge them.

If you want the best response to a question, please check out FAQ222-2244: How to get the best answers first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller  

RE: tables vs. div tags - advantages/disadvantages

Probably one of the best examples of why not using tables is good is the site http://www.csszengarden.com/.

All of the layouts are using identical markup. The only thing that changes is the CSS.

Pretty impressive, eh?

P.S. My favourite has always been Radio Zen (http://www.csszengarden.com/?cssfile=058/058.css).

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page @ Code Couch: http://www.codecouch.com/dan/

Code Couch Snippets & Info: http://www.codecouch.com/

RE: tables vs. div tags - advantages/disadvantages

(OP)
Thanks!!  I will definately keep this in mind next time we "revamp" our websites!

RE: tables vs. div tags - advantages/disadvantages

Divs are hardly new anymore.

Advantages of tables: Any idiot can use them. Still the best way to present tabular data.

Disadvantages: Typically add unneeded markup, slowing down load time. Combine presentation with content.

Advantages of divs: Separates content from presentation. Redesign may be accomplished by only changing stylesheets.

disadvantages of divs: Redesign rarely accomplished by only changing stylesheets. smile

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard

RE: tables vs. div tags - advantages/disadvantages

Thanks Chris - that made for interesting reading

Keith
www.studiosoft.co.uk

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close