View Full Version : CSS Divs or Tables?
justintimberfakesucks
03-30-2007, 03:00 AM
I'm bad. I use both. Can't kiss my tables goodbye.
rafdarrow
03-30-2007, 04:30 AM
Tables have their place - when you need a table of information. Like if you are listing 5 locations with their addresses and phone numbers the way you would in a database. But that table should be nested in a div. That way your code is cleaner for search engines and easier to alter in the future.
jb_grilled_ham_and_cheese
03-30-2007, 06:30 AM
I never learned to use Tables for layout. I was taught CSS Divs for layout and Tables for tabular data. I can't imagine using tables for layout. I understand that's all we had, but now it's time to make the switch. You'll be glad you did. So, take CSS into the final frontier. Or, to infinity and beyond. Or, whatever. Now I just need to figure out JavaScript and PHP and I'll be set.
injanier
03-30-2007, 08:45 AM
Some web designers make a fetish of avoiding tables for layouts. Have a look at the CSS for this page: http://alistapart.com/d/holygrail/example_3.html . They have resorted to silliness like "margin-bottom: -10000px;", just to produce a simple three equal columns with header and footer. And up until IE7, it used to work!
On the other hand, have a look at the coding to produce this relatively simple layout using tables: http://www.netobjects.com/html/fusion_10.html . This is the sort of layout that gives tables a bad name, and these folks will sell you a software tool to do it with. When you find yourself writing "colspan=14" it's time to stop and ask yourself if there isn't a better way.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.