Ver Mensaje Individual
  #5 (permalink)  
Antiguo 06/06/2012, 13:14
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Como dar un margen negativo de una tabla html?

Si es por tu explicación, ahora entiendo 1/4 apenas, ahora , después de ver el link que pasaste y lo que hay en http://d2hforum.com/

Se me ocurre que a lo mejor lo que querés hacer es esto
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6. </head>
  7. <table style="width:100%;background-image: url(http://d2hforum.com/d2hforum.png);">
  8. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  9. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  10. </td>
  11. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="r" width="333">
  12. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  13. </td>
  14. </tr>
  15. <tr>
  16. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  17. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  18. </td>
  19. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  20. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  21. </td>
  22. </tr>
  23. <tr>
  24. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  25. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  26. </td>
  27. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  28. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  29. </td>
  30. </tr>
  31. <tr>
  32. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  33. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  34. </td>
  35. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  36. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  37. </td>
  38. </tr>
  39. <tr>
  40. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  41. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  42. </td>
  43. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  44. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  45. </td>
  46. </tr>
  47. <tr>
  48. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  49. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  50. </td>
  51. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  52. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  53. </td>
  54. </tr>
  55. <tr>
  56. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  57. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  58. </td>
  59. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  60. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  61. </td>
  62. </tr>
  63. <tr>
  64. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  65. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  66. </td>
  67. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  68. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  69. </td>
  70. </tr>
  71. <tr>
  72. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  73. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  74. </td>
  75. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  76. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  77. </td>
  78. </tr>
  79. <tr>
  80. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  81. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  82. </td>
  83. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  84. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  85. </td>
  86. </tr>
  87. <tr>
  88. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  89. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  90. </td>
  91. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  92. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  93. </td>
  94. </tr>
  95. <tr>
  96. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  97. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  98. </td>
  99. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  100. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  101. </td>
  102. </tr>
  103. <tr>
  104. <td style="background-repeat: no-repeat; background-position: 0% 0%;" background="http://d2hforum.com/images/lmi.png" height="37" valign="center" width="333">
  105. &nbsp;&nbsp;&nbsp; <a href="http://d2hforum.com">Test 1</a>
  106. </td>
  107. <td style="background-repeat: no-repeat; background-position: 100%;" align="right" background="http://d2hforum.com/images/lmi2.png" height="37" valign="center" width="333">
  108. <a href="http://d2hforum.com">Test 2</a>&nbsp;&nbsp;&nbsp;&nbsp;
  109. </td>
  110. </tr>
  111. </body>
  112. </html>

Advertencia, usé tu código tal cual esta, funciona pero tiene algunos errores.
Para el atributo valign no existe el valor center, será middle en todo caso.
estás usando el atributo background para las imágenes de fondo, deberías hacerlo todo en el style
style="background-image: url(http://d2hforum.com/images/lmi2.png);background-repeat: no-repeat; background-position: 0 0;"
como yo lo hice para<table>
Tu <tbody> es innecsario, solo se usa si se lo asocias a un thead y un tfoot, podés tambien simplificar todo tu código, dándole clases a las celdas y poner todo en un css, incluso vertical-align, text-align, y demás.

Te recomiendo que comiences con los manuales, por ejemplo
http://librosweb.es

SAludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.