Hi Sophie, Great thinking. I originally had it set to scope but figured the pricing would be clearer for a screen reader user using IDs and headers. Also in the long term they're adding on a further lodge or two with different prices. Sytyling the IDs in pairs sounds good. I'm off to webaim.org thanks :-)
Cheers David -----Original Message----- From: Sophie Van Waesberghe [mailto:[EMAIL PROTECTED] Sent: 01 November 2007 15:31 To: David Dalgety Subject: RE: [css-d] Styling Valid xhtml Tables Hi David, As I didn't see a reply I figure I might just give this a whirl. As they're not very complex tables have you considered using 'scope' instead of id/header? If you make the column and row start <th>s that should work properly. I would add classes for styling as there might be other (future) tables that need a similar look. If you want to use the ids for accessibility I would make them unique so you'd end up with something like: <tr> <th id="wk_period">Period</th> <th id="wk_bunn"><a href="log_cabin_1.htm">Bunnahabhain</a></th> <th id="wk_strath"><a href="log_cabin_2.htm">Strathisla</a></th> </tr> <tr> <th id="jan" headers="wk_period">January - May</td> <td headers="wk_bunn wk_period jan">£580</td> <td headers="wk_strath wk_period jan">£680</td> </tr> etc The other table could use br_period or something :-) Then you can either add classes (for use across the site) or style the 2 ids in pairs. Hope none of this is granny/eggs stuff and that it helps a bit :-) See here for detailed table info: http://www.webaim.org/techniques/tables/data.php Good luck Sophie -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Dalgety Sent: 01 November 2007 11:44 To: [email protected] Subject: [css-d] Styling Valid xhtml Tables I have two tables on the same page (http://www.lazydaycottages.co.uk/rates.htm). To make them accessible I've added IDs to each header and headers to each row. This will also allow me to add some additional style to each row. The problem is because both tables contain the same unique IDs the page will not validate as xhtml 1 transitional. Is it ok to use classes instead in this situation? Or what else would you advise? Thanks, David ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ __________ NOD32 2632 (20071101) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
