Race results styled by position
A club's 10k results, bound from data. No row names a style: the podium and the last finisher are picked out by where a row stands.
- nthChild 1, 2 and 3 give the gold, silver and bronze rows their colours, nthLastChild -n+1 the last finisher, in one style on the table
- The same style over category tables of three, two and one finisher: the lone runner is the first, the second-from-last and the last at once, and every rule that matches applies
- A ranked podium list does the same with list items
- Bound data: the rows come from the data file, so the styling holds whatever the number of runners
- PDF/A-4 with PDF/UA-2, and the same rules in the DOCX
What to look for. The three coloured rows at the top of the overall table, the last row marked, and the one-runner category table carrying all of them.
Features used: PDF/A-4, PDF/UA-2, DOCX Transitional conformance, tables, lists, rules, data binding, headers and footers
- Output
- Template
- Data