Log in

View Full Version : CSS or Tables (or both?)



adrenalin85
08-04-2007, 06:54 AM
Greetings,

I have always used tables and CSS only for formatting text/styles...

But not I am hearing from people that CSS is good for aligning, some claim it is better then tables.

So this is one of my first posts here, I knew this website for a long time but signed up at the forum just recently, but I am sure that there are some advanced in web design people that know the answer.

Let know what you think is better for aligning, or if you think to use both is better.

I have plans to learn CSS aligning either way, but thought Id get some info as well.

Twey
08-04-2007, 07:40 AM
Simply put, tables are not and never were designed to be used for layout. Abusing them this way was simply a hack that was used before CSS gained support. In this day and age, there are very few reasons remaining to use tables for layout, and several practical disadvantages (http://www.hotdesign.com/seybold/everything.html) to doing so. Tables are for tabular data, and should only be used to display tabular data -- the <table> element is meant, surprisingly enough, for rendering tables, not for structuring layouts.

rr_6cruiser
08-06-2007, 04:02 PM
CSS is a more effecient (if not sometimes slightly more frustrating :p ) solution that will clean up your code and produce more responsive results once you get the hang of it.

avoid tables for layout as much as possible, even as tempting as it is sometimes. Good luck!