February 1, 201016 yr Hey guys. I'm working on a site for a client of mine, a pizza shop. Mainly for poops-and-giggles I want to make the site as accessible as possible, but I came across a small hurdle with the menu. I think I've got this as accessible as I can make it, but I don't have a screen reader so all I've got to work on is accessibility theory. Does anyone have access to a screen reader? If so, would you mind checking this for me and telling me if it's as intuative to the visually-impaired as it is to the sighted? Also, does anyone else roughly know the theory and can tell me if I've at least got that right? Pizza menu Since I've got a link to that page, I've got one final question: I've put a class on each of the cells so I can style the columns. The number of classes makes me cringe a little, is there a better way to do the same thing, or should i just swallow my pride and stick with it? Thanks, Skateside
February 1, 201016 yr That's not too bad at all, no need to embed unordered lists in a definition list though, that just adds extra navigating. Here's a table method: <table class="pizzas"> <tr> <th>Pizza</th> <th>Toppings</th> <th>Regular price</th> <th>Large price</th> </tr> <tr> <tr> <td> <span class="pizza-name">Super fish pizza</span> </td> <td> <dl> <dt>Toppings</dt> <dd>Anchovies</dd> <dd>Tuna</dd> </dl> </td> <td>£5.99</td> <td>£14.99</td> </tr> </table> I'd probably go for something like this: <div class="pizza"> <h2>Super fish pizza</h2> <dl> <dt>Toppings</dt> <dd>Anchovies</dd> <dd>Tuna</dd> </dl> <ul> <li>Regular £5.99 <a href="addtcart.xxx"></a></li> <li>Large £14.99 <a href="addtcart.xxx"></a></li> </ul> </div>
February 1, 201016 yr Author I'd probably go for something like this: <div class="pizza"> <h2>Super fish pizza</h2> <dl> <dt>Toppings</dt> <dd>Anchovies</dd> <dd>Tuna</dd> </dl> <ul> <li>Regular £5.99 <a href="addtcart.xxx"></a></li> <li>Large £14.99 <a href="addtcart.xxx"></a></li> </ul> </div> Interesting... I would have thought that keeping the menu in a table would have been the better option because it keeps a relationship between all the pizzas? I like the idea of stripping out the definition lists and replacing them with headings
February 2, 201016 yr A table would be fine but the DIV option gives a bit more overall advantage I reckon... 1. Users can navigate by heading tags a bit easier than navigating tables 2. Flexible design/presentation - can easily display pizzas 1 per row, 2 per row, 3 per row etc with a flick of a stylesheet, or mix n match 3. Much easier to do alternative styling for mobile devices Edited February 2, 201016 yr by BlueDreamer
Create an account or sign in to comment