.mak_menu a, a:link, a:visited { color: #000000; text-decoration: none; } .mak_menu a:hover { color: #FF0000; text-decoration: underline; } .mak_footer a, a:link, a:visited { color: #FFFFFF; text-decoration: none; } .mak_footer a:hover { color: #FF0000; text-decoration: underline; } <table> <tr> <td class="mak_menu"> <div> <a href=''>Ссылка1</a> </div> </td> </tr> <tr> <td class="mak_footer"> <div> <a href=''>Ссылка2</a> </div> </td> </tr> </table>
Link 1 behaves in the same way as Link2, despite the fact that they have different styles (I invite the amateurs to edit to make the title of the question more literate :))