note that the TH product would be implied only ( not in the actual mark up, the same way ROW is implied on regular tables)
I am almost certain there is no CSS solution ( tho that would be best ) in which to reverse the ways columns and rows are displayed.
I also know that I could use<TH> instead of <TD> and the scope attribute on the first cell of every row but something seems clumsy about it, if only because I cant group all the THs in a THEAD.
EDIT: I should have added that I am looking to do this while maintaining the table element properties ( dynamic equal= heights, widths )
Am I being too particular? I just wanted some insights about how others handle this situation
[font=verdana]It looks like you’ve got a 2-way table with both row and column headings there, so which way round you present it is largely up to you! Either way, you’re going to have a set of column headings that can be grouped in a <thead> and a set of row headings that can’t. But equally, there are ways of applying styles to all row headings, the easiest being
th[scope="row"] { ...styles go here... }
which allows you to style your column and row headings differently. So while they aren’t in a single grouping element like <thead>, I’m not sure that needs to be a problem.
I’m sure with a lot of donkey work you could mark each and every table cell up with the position you want it to be and then completely rearrange it with CSS, but that’s a massive amount of code and effort, which will undoubtedly completely screw things up for a number of users … it’s much easier just to code it up in the order you want it to appear![/font]
No problem, just have <th scope=“row”>. You can target all the row header cells perfectly well through CSS, what other purpose of ‘grouping’ them do you need?
The specs go into detail on how to mark up cells so that information is well correlated using axis, headers and scope etc. It soon gets pretty complex though but does allow for tables to be marked up semantically no matter what the data.
As Stevie said it seems you just want rows and if you use th scope=“row” on the first cell then columns are not implied.