in reply to Re^3: Your kung fu is excellent but what about...
in thread Your kung fu is excellent but what about...

As far as I'm concerned, I should be able to stick a style on a row and have it apply to the cells in the table. Sorry, it doesn't work that way.

<style type="text/css">tr.highlight td { font-weight: bold; }</style> <table> <tr class="highlight"><td>This is bold.</td></tr> </table>

Now we can go through the arguments for/against using tables all day long. Let me just say that every few assignments I wind up having to display a tabular report.

If anyone is trying to get you not to use tables for displaying tabular data, they don't know what they're talking about. Tables are deprecated as a layout crutch, not when used for their actual purpose. They'd've gone the way of the font tag in recent specs if they were inherently evil — except they haven't.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^5: Your kung fu is excellent but what about...
by tilly (Archbishop) on Dec 21, 2004 at 07:20 UTC
    Thanks, I just learned something. I have no idea why it has to be written that way rather than another (I'd expect the class to just distribute in the obvious way), but I'll definitely make use of the trick.

      That confirms my suspicions that most people rag on CSS out of ignorance rather than having valid criticism… :-) To be fair, I also have yet to see any suitable introductory material for it that managed to convey how to think CSS in simple and clear terms. It took me a very long time to grok some of its aspects, and not even subtle ones at that, simply due to the lack of good material about it.

      What I did there is specify a selector, in CSS lingo. It's one of the things that make CSS so incredibly useful. The relevant section of the spec is actually quite readable, compared to other parts. Unfortunately, IE only supports CSS1's selector forms (see sections 1.4, 1.5, 1.6 in that spec).

      Makeshifts last the longest.

        And that is the thing. I've read the introductory material, and played with examples. I can usually get CSS to kinda work. But I haven't wanted to "learn it the right way" because I know that there are lots of problems with compatibility, and I'd wind up knowing just enough to be irritated by them. Whereas now I don't have many expectations, and don't get disappointed.