Re: OT - Do you table??
by Abigail-II (Bishop) on Apr 28, 2004 at 09:06 UTC
|
<offtopic>
HTML is not about forcing layout on the user. Hence, anyone understanding the medium would not use tables for layout. They wouldn't use CSS to enforce layout either - they make sure the information still makes sense regardless whether CSS is used - and they only use CSS to suggest a certain rendering.
If I want layout, I'd write it in (La)TeX and produce a PDF. Given the current state of the web, it's likely to be more portable as well.
</offtopic>
Abigail | [reply] |
Re: OT - Do you table??
by dragonchild (Archbishop) on Apr 28, 2004 at 03:10 UTC
|
Just today, I went to B&N and started reading about CSS. I use tables nested arbitrarily deep for formatting. I'll be moving to CSS, but until more browsers support CSS3, I don't think I'll be letting go of my tables anytime soon.
Yeah, CSS is nice and all that, but until they come up with something as clean as tables, I'm not sure it'll catch on. Browser support is key.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
| [reply] |
|
Yeah, CSS is nice and all that, but until they come up with something as clean as tables,
Excuse me, are we living in the same universe? You can argue that more browsers support tables. You can argue tables are easier to use. You can argue that they're more effective. But CLEAN? Clean is the one attribute I would not apply to a morass of semi-randomly nested tables.
| [reply] |
|
Ahh, but they're not semi-randomly nested, as you so eloquently put it. They're semi-randomly mashed together! :-)
Seriously, though, tables have 3 tags - <table>, <tr>, and <td>. (Yeah, <th> exists, but it's just a special case of <tr>.) I glanced over the CSS implementation of tables and it looked to be at least twice as complicated.
Yes, I will freely admit that you can do more with CSS tables than you can with HTML tables, including thinking in columns instead of just rows. (<tc>, anyone?) And, yes, I will learn how to do tables in CSS and gladly convert to tables in CSS for those reasons. But, not until the cost-benefit ratio is skewed more toward CSS than it is now.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
| [reply] |
|
Re: OT - Do you table??
by allolex (Curate) on Apr 28, 2004 at 07:14 UTC
|
I use tables for tabular data. I use CSS for all other formatting. I really recommend Jeffrey Zeldman's book to get you started. I am even writing a review of it. My site is all CSS and XHTML.
The two main advantages of using CSS are maintainabilty through good structure and efficiency when it becomes necessary to make formatting changes to your site.
| [reply] |
Re: OT - Do you table??
by jdtoronto (Prior) on Apr 28, 2004 at 04:44 UTC
|
For me CSS now does all my text and graphic layout. I only use tables for organising tabular data. Some of the CSS advocates would suggest we could even do away with those, but whilst everything else seems to work fine in CSS I can't say the same for data - that seems to beone area where the browsers haven't caught up yet.
jdtoronto | [reply] |
Re: OT - Do you table??
by tye (Sage) on Apr 28, 2004 at 17:43 UTC
|
It might be possible to use CSS to specify (or "suggest", if you prefer) position (and sizing) of web elements in such a way that the resulting page adapts well to different window sizes. But I've never seen it done.
Even the impressive "CSS Zen Garden" (which is better than most CSS you'll run into) does a lousy job of supporting window sizes. Most of them just refuse to resize at all. If you make your window even slightly narrower than the author intended, you just get a horizontal scroll bar, if you make it slightly bigger, you just get blank space on the side(s). They act more like a PDF, a big image, or an HTML table with widths all hard-coded as pixel counts than like web pages that are trying to make data available with hints at presentation (which is what I'd think is one of the supposed big points advocated by CSS purists).
Sites that use tables for layout have the distinct advantage that parts never end up overlapping each other (actually, you can make this happen, but everyone understands that the ways to do this are just "wrong" and so I never see it happen). Take this example from the Zen Garden. It actually supports wider window sizes (the only one I've found that does). Now slowly narrow the window that it is in. You'll probably see (perhaps depending on browser quirks) the "Design Pickup" menu start to slide behind the column next to it, while the text under the "So what is this about?" header gets narrower, leaving more and more blank space to its right. Eventually, the "Design Pickup" menu comes out the other side and you have the two side menues (that both refuse to get even slightly narrower) over the top of each other, both sets of text visible on top each other, leaving neither easy to read.
In my experience, when I find a site that has impressively bad layout, it almost always contains CSS. This is even more true when I use my Zaurus (PDA). Its screen is wide enough that most web pages are usable from it as-is... unless they use CSS for positioning or sizing. If a page contains CSS positioning, then on the Zaurus I usually end up seeing overlapping parts and text wrapped after every single word, even though there is blank space to the right of it on the screen.
CSS positioning just makes it way too easy to over-specify things or to create specifications that will make things overlap. The design of CSS affords (encourages) poor layout specifications. Perhaps when CSS and/or the general level of understanding of it become more mature, there will be well-understood practices to avoid overspecified/nonsense layouts and CSS positioning will be more likely to result in flexible pages.
With tables, most authors (of pages that contain information that I'm interested in) seem to understand that specifying a fixed width as a pixel count is a bad idea. The most common problem with tables is inclusion of elements that won't shrink (wide images or long lines of text lacking places to wrap). In my experience, these are less common and less trouble when present than CSS positioning.
I'd like a browser that, by default, will wrap long text elements even if it doesn't contain whitespace outside of PRE tags. Although this would mean that a big "ASCII art" diagram might be unreadable if my window is too narrow, my experience is that the vast majority of the time it would be an improvement. Mostly it would mean that text that (out of laziness or ignorance) was specified to not wrap enough would become quite readable. For the rare case of "ASCII art" too wide for viewing "full screen", the browser could provide a UI method to revert to old-style non-wrapping behavior so you could view the "ASCII art" in parts by scrolling sideways. Opera on the Zaurus actually supports this but only when you've requested that virtually all layout features are to be ignored (arranging the page as a single column with images shrunk to fit if required). I'd like this feature on my desktop browser and to have it be the default and available even when other layout isn't being ignored.
| [reply] |
Re: OT - Do you table??
by pizza_milkshake (Monk) on Apr 28, 2004 at 05:30 UTC
|
i write html for mozilla and ie 5.5. i try to only use tables for columns, because i can't figure out how to make columnar design work in ie. also, of course, tabular data like search results, etc. which is what tables are for. i am learning css more and more but i've still got a ways to go, so i understand that is can be frustrating sometimes, however, it is certainly the way to go. i expect in 5 years most professional-level sites will be using xml and xslt, it is infinitely more flexible although the overhead of setting such a system up is higher.
perl -e'$_="nwdd\x7F^n\x7Flm{{llql0}qs\x14";s/./chr(ord$&^30)/ge;print'
| [reply] |
Re: OT - Do you table??
by nite_man (Deacon) on Apr 28, 2004 at 06:44 UTC
|
I always use tables to format elements on my web pages. I suspect that there are many others, more efficient ways to do that.
For example, a bond of xml and xsl is used actively in the J2EE applications world to format elements on the web pages.
But in my opinion, one of main reason to choose either of formatting approaches is a target of your project.
If you produce some simple site it'll be enough to format elements using tables. If you develop some enterprice application you should begin to think about more complicated solution
---
Schiller
It's only my opinion and it doesn't have pretensions of absoluteness!
| [reply] |
Re: OT - Do you table??
by bradcathey (Prior) on Apr 28, 2004 at 12:33 UTC
|
| [reply] |
Re: OT - Do you table??
by perlinux (Deacon) on Apr 28, 2004 at 08:34 UTC
|
I use tables for everything! I think it's possible to
resolve a lot of problems by using tables within tables and so on.
What about CSS?? I like to use CSS for fonts, colors, border etc...
IMHO, of course :-) | [reply] |
Re: OT - Do you table??
by Anonymous Monk on Apr 29, 2004 at 21:45 UTC
|
Of course I table. I tried formatting my blog entirely in CSS, after going to a talk by Eric Meyer here in Los Alamos. I had to add some tables a few days later when I noticed how horrendous it looked in some browser that I had neglected to check out beforehand.
CSS is great in theory - I got all excited about that talk about CSS. Of course I would love to view my page in WAP, or make it printable just using style sheets. But unfortunately most of my customers do not use the latest and greatest in browser technology. Plus support for CSS varies widely among the different browsers. In addition, I found trying to format data that is logically suited to a table-style layout was very difficult in CSS. Lists are fine, but tables - what a total pain. I do think tables are on their way out, but we don't yet have a good replacement. | [reply] |
Re: OT - Do you table??
by eternius (Beadle) on Apr 28, 2004 at 22:13 UTC
|
Hello
if you are in to clean and small HTML code you should stick to CSS.
But if you have Data best represented in tables, then use them, thats what they are for.
cheers | [reply] |