[uf-discuss] Mark-up for vCard in table rows

Paul Wilkins paul_wilkins at xtra.co.nz
Sun Mar 25 12:08:49 PST 2007


Andy Mabbett wrote:
> Given that the only place class="vcard" can go is the <tr>, where can I
> put class="adr"?

If you have to stick to using tables (ugh), you can nest them together.

<tr class="hcard">
<td class="fn org"><a href="...">Visitor Center</a></td>
<td><table><tr class="adr">
   <td><img alt="" src="flag.png" />
       <a href="..." class="country-name">Nepal</a></td>
   <td><span class="locality">Okhaldhunga (40 km)
       <a href="...">map</a></td>
</tr></table></td>
</tr>

My mother always said tables would be bad for my health.

-- 
Paul Wilkins


More information about the microformats-discuss mailing list