Forum Moderators: not2easy

Message Too Old, No Replies

css to designate header background of diff table types?

         

futureknight

12:47 pm on Jun 17, 2004 (gmt 0)

10+ Year Member



Forgive me if this is a simple thing to most of you. I'm still learning to use the css for more advanced functions. I realize that css is really aimed to help developers replace tables, but I'm working on a project where we need step/action tables...and there is a need for nested tables.

Can I use the css to define different table types? That way I could use a different background for the top row of the table to differentiate between the tables..

thanks in advance for any assistance.

DrDoc

4:55 pm on Jun 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to Webmaster World!

I realize that css is really aimed to help developers replace tables

Actually, that's not what CSS is meant to do at all. Tables are not evil ;) They are just not used very efficiently at times. CSS is meant to handle page styles, and help us remove the layout-descriptive instructions from the markup. For a better description, see the CSS Forum Charter [webmasterworld.com].

I'm not quite sure I understand what you mean by "step/action tables"? Would you mind expanding on this a little?

Still, yes, you can define different table types that will behave differently by assigning class names to them.

futureknight

5:23 pm on Jun 18, 2004 (gmt 0)

10+ Year Member



Hi, thanks for the response,

step action tables is merely what the headings are going to be. The writers will probably have some "if/then" stuff in the "step" section, and then the actions in the "action" part.

I'm just trying to control table header backgrounds through css.