Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [HTML][CSS]Prosty kod, trudny problem, Mam problem z określeniem wielkości odsyłacza
thomson89
post
Post #1





Grupa: Zarejestrowani
Postów: 1 178
Pomógł: 51
Dołączył: 7.01.2009
Skąd: Gdańsk

Ostrzeżenie: (0%)
-----


NAjpierw kod:
  1. <style type="text/css">
  2. body
  3. {
  4. background: url(img/tlo.jpg);
  5. }
  6.  
  7. #bd
  8. {
  9. table-layout: auto;
  10. width: 90%;
  11. background-color: lightgreen;
  12. border: 2px solid;
  13. }
  14.  
  15. #menu
  16. {
  17. width: 100%;
  18. text-align: center;
  19. }
  20. #menu tr td
  21. {
  22. background-color: green;
  23.  
  24. }
  25. #menu tr td a
  26. {
  27. color: white;
  28. text-decoration: none;
  29. }
  30.  
  31.  
  32.  
  33. <meta http-equiv="Content-Language" content="pl">
  34. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  35. <title>STRONA KLASY IIB - </title>
  36. </head>
  37. <table id="bd" align="center">
  38. <tr>
  39. <td><center>TYTUL STRONY</td>
  40. </tr>
  41. <tr>
  42. <td>
  43. <table id="menu" >
  44. <tr>
  45. <td><a href="index"><br>1<br>&nbsp</a></td>
  46. <td><a href="index"><br>2<br>&nbsp</a></td>
  47. <td><a href="index"><br>3<br>&nbsp</a></td>
  48. <td><a href="index"><br>4<br>&nbsp</a></td>
  49. <td><a href="index"><br>5<br>&nbsp</a></td>
  50. </tr>
  51. </table>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>TRESC</td>
  56. </tr>
  57. <tr>
  58. <td>STOPKA</td>
  59. </tr>
  60. </table>
  61.  
  62.  
  63.  
  64. </body>
  65. </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ć?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
piotrooo89
post
Post #2


Newsman


Grupa: Moderatorzy
Postów: 4 005
Pomógł: 548
Dołączył: 7.04.2008
Skąd: Trzebinia/Kraków




Cytat(thomson89 @ 16.01.2009, 20:31:15 ) *
Ja uważam się za jako tako, dobrego programistę.


nie chce Cię krytykować, nie odbierz mnie źle ale robiąc tak:
  1. <td><a href="index"><br>1<br>&nbsp</a></td>
  2. <td><a href="index"><br>2<br>&nbsp</a></td>
  3. <td><a href="index"><br>3<br>&nbsp</a></td>
  4. <td><a href="index"><br>4<br>&nbsp</a></td>
  5. <td><a href="index"><br>5<br>&nbsp</a></td>


nie pokazujesz się ze zbyt dobrej strony.

jeśli już chcesz na tych tabelkach moge zaproponować coś takiego:

  1. <style type="text/css">
  2. body
  3. {
  4. background: url(img/tlo.jpg);
  5. }
  6.  
  7. #bd
  8. {
  9. table-layout: auto;
  10. width: 90%;
  11. background-color: lightgreen;
  12. border: 2px solid;
  13. }
  14.  
  15. #menu
  16. {
  17. width: 100%;
  18. text-align: center;
  19. }
  20. #menu tr td
  21. {
  22. background-color: green;
  23. }
  24. a
  25. {
  26. color: white;
  27. text-decoration: none;
  28. display: block;
  29. padding: 20%;
  30. }
  31.  
  32.  
  33.  
  34. <meta http-equiv="Content-Language" content="pl">
  35. <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
  36. <title>STRONA KLASY IIB - </title>
  37. </head>
  38. <table id="bd" align="center">
  39. <tr>
  40. <td><center>TYTUL STRONY</td>
  41. </tr>
  42. <tr>
  43. <td>
  44. <table id="menu" >
  45. <tr>
  46. <td><a href="index">1</a></td>
  47. <td><a href="index">2</a></td>
  48. <td><a href="index">3</a></td>
  49. <td><a href="index">4</a></td>
  50. <td><a href="index">5</a></td>
  51. </tr>
  52. </td>
  53. </tr>
  54. <tr>
  55. <td>TRESC</td>
  56. </tr>
  57. <tr>
  58. <td>STOPKA</td>
  59. </tr>
  60.  
  61.  
  62.  
  63. </body>
  64. </html>


nie wiem czy to jest to co Cię interesuje.

Ten post edytował piotrooo89 16.01.2009, 20:41:54
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 4.10.2025 - 09:38