View Full Version : CSS or table layout??

06-06-2007, 07:23 AM
what is the better way to create a website?
is it using the table or CSS Layer??
what are the good and bad of Table layout and CSS's??

can any one give me a suggesstion pls....

06-06-2007, 08:02 AM
Using tables non-semantically for layout was something that was originally done as a hack because there was no such thing as style sheets at the time. Thus, for a very long time now, there has been no excuse to use tables for layout.

When you need to display tabular data, use a table. In all other circumstances avoid them.

Here are a couple articles to look at:

Web Page Layouts without Tables (http://www.googobits.com/articles/1303-web-page-layouts-without-tables.html)
Tableless Layouts (http://webdesign.about.com/od/css/a/aa102102a.htm)

Also check out: Introduction to CSS (http://www.w3schools.com/css/css_intro.asp)