in reply to CGI Tables
For two examples of how to use CSS-only for laying out a pretty complicate table-like page, check out these two sites I've designed. Both of them are using CGI.pm on the back-end (and mod_perl, mysql, etc. to drive content from the database); Plucker and pilot-link, and also a quick hack I did a couple of days ago with a CSS-based form (thanks to jeffa amending his reply above, grr ;). Each of them was done in validated XHTML and pure validated CSS, not a single table tag to be found anywhere.
That being said, you should really explore using CSS for what you're trying to do, simply because it has a lot more benefits than tables. Nested tables are a nightmare to maintain, and it is also a lot more code than equivalent CSS (if done right), which makes the CSS pages smaller and faster to deliver to the client. It also separates content from presentation, which allows you (the developer) to work on the site design itself, the back-end code, etc. and let your web-developers work on the look-n-feel of the site, irrespective of what your code outputs.
Also, with proper implementation of User Styles (hit the View->User Style option in your browser's menu to see the 15 different client-side-activated stylesheets on that link), you can change the layout of your page without changing any of your actual page content itself.
One thing many "designers" forget, is that not everyone has a desktop browser (text-mode browser, screen scraper), or even a desktop (cellphone, PDA, WAP), or even a monitor (blind, text-to-speech (TTS) devices), to view your page. If you want to limit your audience and increase your maintenance, tables are one way to do it.
If you must use tables to meet your goal, please review the CSS Table Model for some ideas that may help the transition to CSS in the future. Also, as dws mentioned, there is a wealth of information on tables with CGI here as well as searching for tables on SuperSearch.
Good luck, and you know you can find me on ChatterBox if you have questions or need some help designing or critiquing the site. I'm also unemployed and seeking work, so I can help you longer-term as well, if need be.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: CGI Tables
by merlyn (Sage) on Mar 30, 2003 at 16:30 UTC | |
by Aristotle (Chancellor) on Mar 30, 2003 at 20:58 UTC | |
by hacker (Priest) on Mar 30, 2003 at 17:21 UTC |