Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/11/2011, 11:17
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: Problema con centrado de texto en tabla

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.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10. table.cabtablaclasi3 td{
  11. text-align: center;
  12. }
  13.  
  14. table.cabtablaclasi4 td{
  15. text-align: center;
  16. font-weight: bold;
  17. }
  18.  
  19. /*]]>*/
  20. </head>
  21. <p>negritas con tag &lt;b&gt;</p>
  22. <table class="cabtablaclasi3" border="1" width="50%">
  23.             <tr>
  24.                 <td><b>1</b></td>
  25.                 <td><b>2</b></td>
  26.                 <td><b>3</b></td>
  27.                 <td><b>4</b></td>
  28.                 <td><b>5</b></td>
  29.                 <td><b>6</b></td>
  30.             </tr>
  31.            </table>
  32. <p>negritas con css</p>
  33.            <table class="cabtablaclasi4" border="1" width="50%">
  34.             <tr>
  35.                 <td>1</td>
  36.                 <td>2</td>
  37.                 <td>3</td>
  38.                 <td>4</td>
  39.                 <td>5</td>
  40.                 <td>6</td>
  41.             </tr>
  42.            </table>
  43. </body>
  44. </html>
No es tan complicado, mirá el ejemplo, en ningun momento le paso nada a las filas, pero si querés podrias hacerlo, de una u otra forma funciona.


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