Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. <div class="block">
  2. <table>
  3. <tr>
  4. <td>
  5. <a href="http://example.com">
  6. <div style="width: 100%; height: 100%;">
  7. Test
  8. </div>
  9. </a>
  10. </td>
  11. </tr>
  12. <tr>
  13. <td>
  14. <a href="google.com">Google</a>
  15. </td>
  16. </tr>
  17. <tr>
  18. <td>
  19. <a href="google.com">Google</a>
  20. </td>
  21. </tr>
  22. <tr>
  23. <td>
  24. <a href="google.com">Google</a>
  25. </td>
  26. </tr>
  27. </table>
  28. </div>
  29.  
  30. <style type="text/css">
  31. .block {
  32. width: 100px;
  33. height: 500px;
  34. background: #008700;
  35. }
  36.  
  37. .block table {
  38. /*width: 100%;*/
  39. height: 100%;
  40. text-align: center;
  41. border-collapse: collapse;
  42. }
  43.  
  44. .block table tr:nth-child(odd) {
  45. background: #008200;
  46. }
  47.  
  48. .block table tr:nth-child(even) {
  49. background: #205527;
  50. }
  51.  
  52. .block table tr {
  53.  
  54. }
  55.  
  56. .block table tr td {
  57. float: left;
  58. }
  59.  
  60. .block table tr td a {
  61. display: block;
  62. width: 100%;
  63. }
  64. </style>
  65.  
  66. .block table tr td a {
  67. display: block;
  68. width: 100%;
  69. height:100%;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement