Are you still using tables?

Discuss general web development questions. Help others and get help from others.

Moderator: kfury77

Are you still using tables?

Postby Karlis » Mon Oct 08, 2007 10:47 pm

I know, this is the age of CSS layouts and DIV layers, but I find myself very often in a situations when:

Case 1: using a tables is much faster and the code is much easier to understand

Case 2: css and div just can not do (in all browsers) what the table can

Am I the only one?
Karlis Blumentals
Blumentals Software
www.blumentals.net
User avatar
Karlis
Site Admin
 
Posts: 3598
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe

Postby syrupcore » Tue Oct 09, 2007 6:52 am

yes. ;) kidding, of course.

Table code is only easier to understand because you already know it, I promise. Clean semantic HTML is much much easier to read. So much less code! Once you get used to it, it's a breeze. Your content is in one spot and it's display is separated. Same basic principle as MVC in 'real' programming.

I've been tableless for about 4 years now. I can't think of anything I could do in tables that can't be done with plain HTML and css. Sometimes, the css has to get tricky to get it to work across browsers but then your hacks are confined to a single place instead across your whole site. Is there something in particular I can help with?

IE6 will make you go grey but you learn it's quirks. I'm gonna get a Microsoft tatoo in my bald spot. I fully blame them for it. :)

Will
User avatar
syrupcore
Top Contributor
 
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa

Postby MikeyB » Tue Oct 09, 2007 10:58 am

Yes still use tables, I know I really shouldn't but it's just quicker as it's what I know best.

I am (very slowly now due to the arrival of our baby!) redesigning one of my websites with CSS and trying not to use any tables, and so far so good.

And as will says, you can get the CSS looking good in browsers like Firefox & Opera, then open it in IE and it all goes wrong, nice!!!
User avatar
MikeyB
Top Contributor
 
Posts: 511
Joined: Fri Jun 09, 2006 10:38 am
Location: UK

Postby notuo » Tue Oct 09, 2007 4:13 pm

I am with syrupcore

I started about 2 years without tables (unless is tabular data) and works not only better, but the code really is more clean.

Regards
User avatar
notuo
 
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Postby chrisjlocke » Tue Oct 09, 2007 10:34 pm

Tables? Yuk!
Lazy bad way to design a webpage. It may be quicker and easier to knock up a table to position text, etc, but there is just so much more bloat in the HTML code. Much neater with CSS, and easier to maintain at a later date.
User avatar
chrisjlocke
Top Contributor
 
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK

Postby syrupcore » Tue Oct 09, 2007 11:31 pm

chrisjlocke wrote:...and easier to maintain at a later date.


+10.

In all honesty, the reason I investigated web standards in the first place was trying to keep a massive massive website I'd built updated. It was all tables and jesus, editing/updating/changing just sucked.

When I read feature requests here from folks that want to be able to click on something in the preview screen so they can find it in the code, I'm willing to bet 9 of 10 are using TD soup to layout their webpages. With clean html (eg, no stinking display code), it's just not that hard to find code bits in your document.
User avatar
syrupcore
Top Contributor
 
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa

Postby MaxD » Tue Oct 23, 2007 7:29 pm

IE7 is a much better browser, and you don't get the same problems as IE6. I only used tables when I used a WYSIWG editor, and moved to CSS when I started using a HTML editor. There are some excellent articles on CSS and tables, to make them easier to update though.

CSS is great. Just create a 'wrapper' and put all your content within. Be even better when rounded corners for content boxes and transparency becomes better supported.
User avatar
MaxD
 
Posts: 127
Joined: Mon Dec 18, 2006 10:05 pm
Location: UK

Postby Mot » Wed Oct 31, 2007 4:28 pm

The issues of corners and transparency have kept me building the framework of some of my sties out of tables, but I have a sense that even this is not a valid reason.

Admittedly, I'm new to constructing sites using CSS. It's frustrating at times. I've literally ended up scrapping everything for a site I was working on and starting over because I could not unravel the CSS puzzle.

Among a myriad of increasingly messed up positioning problems, a menu I was designing actually turned backwards on me and I could not for the life of me explain it.

Home | About | Services | Contact

actually became

Contact | Services | About | Home

It was at that point I realized I wasn't in Kansas anymore.

Still, I'm doing what I can to fight through the pain of the learning curve with the anticipation that I will be a better web developer for it.

I'm going to start a new thread about favorite CSS Tutorials. I hope you will all go there and submit your favorite CSS learning aid.

:)
User avatar
Mot
 
Posts: 28
Joined: Tue Oct 09, 2007 4:13 am

Postby notuo » Wed Oct 31, 2007 6:18 pm

Mot.

For your menu problem, please check if you have floats within floats or something like that.

I ran into that sometime and the issue was the float (and maybe combined with text-align)

hope this helps.
User avatar
notuo
 
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Postby syrupcore » Thu Nov 01, 2007 1:10 am

your menu problem was, almost certainly, that you had the menu items floated right. float right is a funny beast. :) instead, float the containing element right and leave the children elements alone. in fact, they can be floated safely left within a right floated container.
User avatar
syrupcore
Top Contributor
 
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa

Postby notuo » Thu Nov 01, 2007 4:17 pm

That's correct syrupcore,

I didnt't recall the situation but was related with floats.
User avatar
notuo
 
Posts: 258
Joined: Sat Jul 09, 2005 8:07 pm
Location: Tlalpan, Mexico City, Mexico

Postby syrupcore » Sat Nov 10, 2007 8:43 pm

came across an older presentation on why to switch from tables to css based layouts.

http://www.hotdesign.com/seybold/
User avatar
syrupcore
Top Contributor
 
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa

Postby daredare » Wed Nov 21, 2007 2:58 pm

i think that sometimes tables can be much more consistent than div style layout. not to replace all the layout with tables but using them in certain cases
daredare
 
Posts: 125
Joined: Sun Sep 09, 2007 1:40 pm

Postby chrisjlocke » Wed Nov 21, 2007 3:56 pm

I think you need to back that up. Apart from displaying tabular data, I can't think of one instance where it is better to use tables, rather than CSS.
User avatar
chrisjlocke
Top Contributor
 
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK

Postby syrupcore » Wed Nov 21, 2007 11:14 pm

chrisjlocke wrote:I think you need to back that up. Apart from displaying tabular data, I can't think of one instance where it is better to use tables, rather than CSS.


+1
User avatar
syrupcore
Top Contributor
 
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa

Next

Return to Web Developer Talk

Who is online

Users browsing this forum: No registered users and 11 guests

cron