Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Using DIV and CSS instead of TABLE tags?
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 15 December 2004 :  20:13:30  Show Profile
Is this possible? To position and align content for your pages using DIV tags and style sheets, without using table tags?
Would this design show ok across the different types of browser out now? Firefox, IE, Opera, Netscape, Mozilla.

Can we start dropping the use of TABLE tags and start using DIV and CSS, or is table tags still around to stay?

I am just getting into the swing of using style sheets with DIV and am amazed at what it can do.

Support Snitz Forums

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 15 December 2004 :  21:16:30  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
For the most part, you can control your positioning very easily with css and can eliminate most of the uses of tables. The biggest issue is when you want to have a truly flexible layout which will stay nicely in all browsers. That can be a challenge.

That being said, tables should still be used where they are appropriate. If something is tabular data (like say, oh...these forums ), then the tables can stay. Now you can do things like get rid of the wrapping table and stylize the rows pretty heavily, but it should still stay as a table. This is as much for text readers and other non-standard browsers. You want to leave this kind of stuff tabular because it makes it easier for the nonstandard browsers to work with what is there.

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 15 December 2004 :  21:19:01  Show Profile
IT can take the brunt of the work, but some tables would need to stay (my estimate is up to five). Add an external sheet, heavily commented (better than Speedball, simply to give a break to CSS-challenged people) and you have a winner.

OTOH, flash thought is if some positioning could be moved around (drop down paging and such), you could go without tables at all.
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 15 December 2004 :  23:15:54  Show Profile
There's a whole world out there that is into compliance and standards based sites. Notice how most CSS sites are fixed width? The hacks to make a truly liquid cross-platform site are somtimes worse than using tables for layout in the first place. Google "box model hack" and see what comes up.

KawiForums.com


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 15 December 2004 :  23:21:32  Show Profile  Visit dayve's Homepage
I spend a lot of time at http://www.cssvault.com and have seen a lot of table'less sites. It is very possible.

Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 16 December 2004 :  04:18:17  Show Profile  Visit D3mon's Homepage
Speedball 3 (in progress) is taking some heavy steps forward in terms of CSS-Driven, table-less layout. Note that forums are tabular data and therefore should (correctly) contain at least one table (for the main part of the page.)

Wanna learn CSS? Start here http://www.w3schools.com/css/


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"

Edited by - D3mon on 16 December 2004 04:18:58
Go to Top of Page

red1
Junior Member

355 Posts

Posted - 16 December 2004 :  14:02:54  Show Profile
I never liked the nesting of tables just to create the single-pixel border effect.

My Mods:
New Events Calendar
New Non-database Active Users
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 16 December 2004 :  14:29:21  Show Profile
http://portal.portland.co.uk/forum/

KawiForums.com


Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 16 December 2004 :  14:40:57  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Thats amazing gary... I didnt see a single table!

I tried figuring out how to do the table-less thing, but I failed miserably... I messed with a test page on my local host for about 2 hours, only to accomplish nothing...

One thing that pisses me off about CSS is the fact that its flexible... thats usually a good thing, but for instance, IE doesnt support the :hover on div, td, span tags, but Firefox does (I love it)...

It would be kind of hard I think to make a cross-browser CSS based webpage... Too hard for me to start working on anyway.

Right now I'm working on my own website (finally, I'm going to have a domain and an actual reliable host) - I want to try and make it XHTML strict compliant, and I want to use CSS to its fullest extent, but I just dont have the knowledge to do so.

I'm the type of person that learns by example. I learned asp by installing snitz, and customizing it myself through trial and error - and various references via 4guys, and people here at snitz providing example code.

When it comes to CSS, all I can seem to find is references and libraries, its hard to come by code examples for me to learn off of.

-Stim
Go to Top of Page

-gary
Development Team Member

406 Posts

Posted - 16 December 2004 :  15:39:03  Show Profile
Just a few of the sites I've bookmarked in my journeys.

A List Apart
Practical CSS Layout Tips, Tricks, & Techniques
mezzoblue Essentials
CSS Vault
CSS Creator


KawiForums.com


Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 16 December 2004 :  16:09:02  Show Profile  Visit dayve's Homepage
quote:
Originally posted by red1

I never liked the nesting of tables just to create the single-pixel border effect.


yeah, that is an old-school practice I left long ago. I've been heavily into CSS the past year and have become quite addicted. all of my client sites that I have developed recently have a large percentage of CSS in place of old HTML practices.

another CSS site I visit that has a forum with zero tables in its construct:

http://www.accessifyforum.com/

quote:
Originally posted by -gary

Just a few of the sites I've bookmarked in my journeys.
Practical CSS Layout Tips, Tricks, & Techniques

This is the article I used to create my thumbnail views of images on my forum.


Edited by - dayve on 17 December 2004 01:12:26
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 17 December 2004 :  02:10:25  Show Profile
If you can get a hold of DW MX 2004, look at their CSS page layout templates - very good, and very playable with.
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 December 2004 :  03:09:34  Show Profile  Visit dayve's Homepage
Bah! Dreamweaver Blows.... bloated and outdated approaches. Learn CSS the real way, read and test using a simple code editor.

Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 17 December 2004 :  09:02:49  Show Profile
quote:
another CSS site I visit that has a forum with zero tables in its construct:

http://www.accessifyforum.com/

One of my bookmarks I haven't visited in a long time. It's not completely tableless but they're almost there.

This is a forum that went tableless recently.
http://www.csscreator.com/css-forum/forum15.html
These guys have helped me alot with my css problems.

quote:
Would this design show ok across the different types of browser out now? Firefox, IE, Opera, Netscape, Mozilla.

Useing the correct DOCTYPE is the best place to start.
http://www.positioniseverything.net/articles/doctypes.html
Check out thier site. They have some good articles and links.

    _-/Cripto9t\-_

Edited by - cripto9t on 17 December 2004 09:06:13
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 17 December 2004 :  09:26:00  Show Profile  Visit MarcelG's Homepage
Perhaps it's just me, but what's so bad about using tables ? Is it filesize or something like that ?

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

D3mon
Senior Member

United Kingdom
1685 Posts

Posted - 17 December 2004 :  10:03:42  Show Profile  Visit D3mon's Homepage
Tables used for layout purposes (i.e. to position elements on the page) cause problems for standard browsers and also can make pages very difficult to read for partially-sighted users etc. who have customized browsers like screenreaders. Nested tables - tables inside tables, amplify this problem.

Of course, tables have a valid use in HTML (to present tabulated data - like a bus-timetable) so they should not to be considered totally evil!


Snitz 'Speedball' : Site Integration Mod : Friendly Registration Mod
"In war, the victorious strategist only seeks battle after the victory has been won"
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07