943,469 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Sep 9th, 2006
0

Tables?! Don't be a div.

Expand Post »
For some reason, it's fasionable to abort tables even if a good situation exists for their usage. When did this happen? I like tables, and I don't think they should be overlooked.

Most of the time, I create my pages with a huge table holding everything together. Sure, I could fight with DIVs and the annoying difference in their representation on different browsers, but I'd rather not. I'd rather use a big table, and I know my table will appear (almost) the same everywhere, when I do (almost) anything to it.

The reason I say this, is the number of sites I find in my google bounces, advocating DIVs as the way to lay out a site. Sure. If you want to make static pages containing information, they provide a way of some interesting effects, but it's certainly amusing that most of the biggest advocates of whom I've read code have nested their DIVs in a way that would be frankly un-interperatable if they ever want to make a change in something. At least with tables you don't need to practically print out your CSS to be able to read your HTML.

I use DIVs, where it's appropriate, and I use TABLEs, when I know I need tabular layout; and I don't mean restricted row-cell datasheets, but whole pages where I know the top banner should be this big, the sidebanner should be this big, and the middle should be this big. Sometimes, I nest my tables.

Each to his own I suppose, but I don't like this ganging-up on an element, based on the way it is supposed to be used. This is exactly what happened to FRAMEs, and look where they ended up. FRAMEs worked for a purpose, and nothing actually does what a frame does, except rewriting the entire concept, and calling it something else. Fair enough, it's a limited purpose, but now, those who regard themselves as "web-savvy and modern" would (apparently rightfully) scream if they saw one.

I like the idea of the diversity of the Web. I don't like the idea of (widely spoken) rules about how things should or shouldn't be done. I appreciate accessibility standards, but not style standards, or even the idea of "the standard usage of a website".

In conclusion.. whatever. :lol:
Similar Threads
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
I'm afraid I have to disagree with you. I am one of those ultra CSS advocates. The freedom of keeping style and content entirely separate entities! To be able to change the whole look and design by just changing the CSS. Plus it makes for better crawlability by search engines, and you can't fight that
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
I think table's have a use. Ifyou want to quickly put up data and have it displayed properly in the least amout of time, i would go with a table.

Creating a table format in CSS is no easy task.

As dani said CSS has it's benefits. Ease of design changes and better for crawlability.

+ / -
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
kub365 is offline Offline
88 posts
since Nov 2003
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
Oh c'mon, CSS is easy The two column layout here on DaniWeb is pure CSS, and never had a browser compatibility problem.
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
Change your username from CSCGal to CSSGal
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
kub365 is offline Offline
88 posts
since Nov 2003
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
haha
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
You can't keep style and content separate with JUST CSS. The order of elements is always important to a degree. If you have to change just ONE tag in HTML, you fail to keep the two separate

I find editing HTML/script to edit layout and CSS to edit the style of the layout more intuitive. Infact, I generate my HTML from XML, and there needs to be a defined way of things appearing in the right place. DIVs -but- only if their in table cells for me

Because of that (XML source), my new site won't even be interperable by search engines O_o

Check out the beta though; I'll admit, the style is lacking:

http://www.fusiongroupuk.com/fuse/data/index.xml

(username: guest/matt, password: password/password)

XSLT forever!
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
Ah, but that's the point of absolute positioning with CSS You can reposition elements on the page, change their order, etc, without touching the XHTML. Hence the power of CSS
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
Aah but with that, things stick all over the place (how do you measure relativity to text?), and it doesn't pertain to consistency on every screen at every size (think handheld devices), and it leaves CSS files as huge lists of where's thats, which is surely what HTML is (or maybe was) for. I'm optimising my site's underlying structure to be easily editable by people other than me, (don't know how well that's gonna work) but I'd still rather keep my tables, and I'd still rather keep my CSS to a list of colors and (maybe) some floats.

Maybe, I'll change my mind by the time I've finished, but it hasn't happened yet, and I maintain, tables do what they should, and shouldn't be automatically dismissed.

Still, good design Dani. Did you build everything we see here? I like the style or I probably wouldn't be here.

Matt
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006
Sep 9th, 2006
0
Re: Tables?! Don't be a div.
I'm gonna have to agree with the author and say tables is generally the way to go. DIVs cause more problems than its worth. With tables, I have a nice layout that views the same across every browser. With DIVs, I could spend an hour and have a different effect in every browser. Not necessarily a problem with the DIV tag, I know its all the browser incompatibilities, but until all the companys can agree on standards (and actually adhear to them) I'll stick with tables.
Reputation Points: 92
Solved Threads: 51
Practically a Posting Shark
Phaelax is offline Offline
856 posts
since Mar 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in IT Professionals' Lounge Forum Timeline: Need advice & help with a very simple program
Next Thread in IT Professionals' Lounge Forum Timeline: Crazy bug in Nvidia Monitor





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC