0

I need to markup a ladder for upcoming tournaments, and I can't find any way to mark it up semantically. The only way I've seen so far is to mark it up as a table, and I'd like to avoid that at all costs.

Any ideas?

Ryan McCue
  • 1,579
  • 12
  • 21
  • Why avoid using a table? It is tabular data. Semantically, a table would be the best choice. – Matthew Schinckel Dec 16 '09 at 02:06
  • Just coz it looks basically like a table it doesn't mean it's tabular data. The horizontal relationships are a bit trickier than just table rows, and I think a list of matches is a more accurate way to think of the matches than as a column of data in a table. Though maybe a combination of tables and lists woudl be best – wheresrhys Dec 16 '09 at 11:14
  • Don't forget to accept an answer. – fserb Jan 03 '10 at 04:01

2 Answers2

1

I've found one example at Accessible NCAA Tournament Bracket which uses a mix of ul/li to achieve it. It's far from perfect (it could uses li + li instead of the "top/bottom" classes, but it's a start.

fserb
  • 3,443
  • 2
  • 23
  • 22
  • What exactly do you mean by '`li + li` instead of the "top/bottom" classes'? The list does use `li` tags for that. Great example though, thanks! – Ryan McCue Dec 16 '09 at 02:24
  • I meant you could have css rules for `li` with `li` sibling to separate the first li from the second, instead of having to mark them `
  • ` as they do on the example.
  • – fserb Dec 16 '09 at 13:35