CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 29th, 2004, 11:00 AM
sstringer's Avatar
sstringer sstringer is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Dallas, TX
Posts: 135 sstringer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 25 m 39 sec
Reputation Power: 6
Send a message via Yahoo to sstringer
Question PHP, CSS, and migrating from table-based design

Like many PHP programmers, I've been migrating from table-based design to CSS for a few websites now, but there's still a problem I've yet to get around.

Most dynamic websites have at least one page that displays a number of dynamic results that need to be displayed in a tabular format. That is, you need to display variable results in orderly columns and rows. Traditionally, this has been done with html tables. No problem. Tried and true.

But WC3 has recommend the migration away from tables. Thus, I feel like I'm a "bad" web developer when I resort back to using tables for the dynamic results on my otherwise CSS-based page.

Question: since this is a problem that many PHP programmers currently face, has anyone found a good resource for information on this problem? Is it even possible?

I've purchased several CSS books and have combed through many websites, but I've never found information relevant to the dynamic design that we PHP programmers face.

In fact, the O'Reilly book seems to indicate that it's not possible to achieve tabular layout without using tables:


Quote:
Tables are unique, compared to the rest of document layout. As of CSS2.1, tables alone possess the unique ability to associate element sizes with other elements--all the cells in a row have the same height, for example, no matter how much or how little content each individual cell might contain. The same is true for the widths of cells that share a column. There is no other situation in layout where elements from different parts of the document tree influence each other's sizing and layout in so direct a way.

- p.331, Cascading Style Sheets: The Definitive Guide, Second Edition by Eric A . Meyer, (c) 2004, O'Reilly Media, Inc.

So before I give up my search, I thought I'd post to this forum to see if anyone has found a good solution.

Many thanks,
Steve Stringer

Reply With Quote
  #2  
Old April 29th, 2004, 11:55 AM
TuxLives TuxLives is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Apr 2003
Location: Tacoma, WA
Posts: 1,307 TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level)TuxLives User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 10 h 47 m 23 sec
Reputation Power: 9
If you do some reading I think that you will find that the recomendaton is to get away from tables when the data therein is not tabular data.

EG: Welcome text, about us, etc

But, when your have data that is designed that way, say results from a query for books, you, in fact, want it in a table. The reason being, that while it is a bit of a pain for non visual browsers to deal with the table definitions, the information is then known to be related the way it is laid out.
__________________
Suddenly nothing happened.

Reply With Quote
  #3  
Old April 29th, 2004, 01:24 PM
JeffCT JeffCT is offline
PHP & Ruby Developer
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,437 JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level)JeffCT User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 5 h 36 m 40 sec
Reputation Power: 9
The idea is to move away from using tables to control layout. They are still to be used for tabular data.

Reply With Quote
  #4  
Old April 29th, 2004, 08:41 PM
Salizar's Avatar
Salizar Salizar is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2001
Posts: 289 Salizar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
JeffCt is exactly correct...
Theres no way you would be able to formulate data dynamicly with 100's of rows without a table...
I'd love to see someone try it though...

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > PHP, CSS, and migrating from table-based design


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT