Already on ArticleSlash?

Forgot your password? Sign Up

Using CSS Instead of Tables


Visitors: 596
 1 vote

The following article will show you why to stay away from tables when designing a site.

Most web developers and designers will tell you to stay away from tables when developing web sites, of course there are some exceptions, like forms, and data. Instead they will tell you to use CSS. When designing your web site you should use CSS, along with the HTML tag. Now, you may be asking, why? The reasons are below!

1. Tabular Data. Not layouts.

Tables are for Tabular Data. They simply are not for designing a page. Here is a good page at that explains Tabular Data.

2. Nested Tables

Nested tables is a common way to make layouts with tables. With nested tables, one, or more, tables are placed inside each other. There is a problem when designing a page this way, it takes the browser longer to render your page. With CSS there is way less code, and your code is cleaner, therefor it is easier on the browser.

3. Changing fonts, colors, and layouts.

Lets say you had a site with 100 pages, with tables, and you wanted to change the header of every page to blue instead of red. With CSS you could go into the CSS file, included on every one of those 100 pages, and change the font-color to blue. It would then update all of your pages with the color blue. With tables you would have to open every one of those pages and change the color.

4. Invalid XHTML

When using tables for your web page layout, you are writing invalid XHTML. You should only use tables when you are working with Tabular Data, as I stated above.

5. Smaller HTML files

No one wants a huge HTML file, full of messy code, right? Well, this is just another reason to use CSS. Since you can call your CSS style sheet from external file, it doesn't even need to be in your HTML file to work, making it even smaller. is home to tutorials, tips, resources, and scripts for your web sites!

Home Page -
Community Forum -


Article Source:

Rate this Article: 
Fire Pit Tables Dos and Donts
Rated 1.0 / 5
based on 1 vote

Related Articles:

Teak Side Tables - Just One of the Many Teak Tables Perfect for any Outdoor and .

by: Jennifer Akre (February 01, 2007) 
(Home and Family)

End Tables - They Have Many Uses

by: Jennifer Akre (July 20, 2008) 
(Home Improvement/Interior Design and Decorating)

End Tables - They Offer You Much More Than You Think

by: Jennifer Akre (September 28, 2008) 
(Home Improvement/Furniture)

Snooker Tables

by: Steve Porter (February 19, 2008) 
(Shopping and Product Reviews)

Console Tables - They Have Many Uses

by: Jennifer Akre (September 01, 2008) 
(Home Improvement/Furniture)

End Tables - a Smart Investment

by: Jennifer Akre (July 02, 2008) 
(Home Improvement/Furniture)

Billiards Tables Primer

by: Anne Clarke (July 10, 2008) 
(Recreation and Sports/Billiards)

Wall Mounted Tables

by: Chad R Fisher (June 01, 2008) 
(Home Improvement/Furniture)

What is Dimensions Tables in Oracle?

by: Gitesh Trivedi (March 22, 2012) 
(Computers and Technology/Software)

Fire Pit Tables Dos and Donts

by: Jim Ames (July 07, 2008) 
(Home Improvement/Landscaping Outdoor Decorating)