<html> <head> <style type="text/css"> body { background: url(img/tlo.jpg); } #bd { table-layout: auto; width: 90%; background-color: lightgreen; border: 2px solid; } #menu { width: 100%; text-align: center; } #menu tr td { background-color: green; } #menu tr td a { color: white; text-decoration: none; } </style> <meta http-equiv="Content-Language" content="pl"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1250"> </head> <body> <table id="bd" align="center"> <tr> </tr> <tr> <td> <table id="menu" > <tr> <td><a href="index"><br>2<br> </a></td> <td><a href="index"><br>3<br> </a></td> <td><a href="index"><br>4<br> </a></td> <td><a href="index"><br>5<br> </a></td> </tr> </table> </td> </tr> <tr> <td>TRESC</td> </tr> <tr> <td>STOPKA</td> </tr> </table> </body> </html>
Kod ten tworzy tablekę, tabelka druga z id menu to duże zielone przyciski. Ale jak wpisze tam tekst i dam odnosnik, to niestety (to normalne) mam w odsyłaczu tylko tekst. CHciałbym teraz aby cały duży przycisk czyli czałe td, było jako odsyłacz a nie tylko tekst.
Jak to zrobić?