Ver Mensaje Individual
  #5 (permalink)  
Antiguo 10/09/2010, 07:55
TheDark03
 
Fecha de Ingreso: mayo-2010
Ubicación: Lima, Peru.
Mensajes: 176
Antigüedad: 13 años, 10 meses
Puntos: 6
Respuesta: Tamaño letra table

Cita:
Iniciado por nerwell Ver Mensaje

en el inicio del .css tengo
Código CSS:
Ver original
  1. * { font-family:Tahoma;
  2. font-size: 12px;}
pero no creo que influya.
Hola nerwell, no es recomendable que apliques esas propiedades al selector universal *, pero como dices no afecta en nada si es que formateas bien, en este caso tu tabla.

mira te dejo un ejemplo donde podras apreciar el formateo a distintas partes de la tabla...
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  4. <title>bye TheDark03</title>
  5. * { font-family:verdana;
  6. font-size: 12px;}
  7.  
  8. #mytable{width:500px;}
  9.  
  10. #mytable th,#mytable td{
  11. font:13px Arial, Helvetica, sans-serif;
  12. color:#333333;
  13. border:none;
  14. padding:15px 15px;
  15. border-bottom:1px solid #e1e1e1;
  16. text-align: left; width:40%;
  17.  
  18. }
  19.  
  20. #mytable th{
  21. line-height: 15px;
  22. border-right:1px solid #e1e1e1;
  23. width:50%;
  24. padding-left:15;
  25. font-weight:bold;
  26. font:16px 'Monotype Corsiva';
  27. }
  28. </head>
  29.  
  30. <table id="mytable" cellspacing="0">
  31.     <thead>
  32.        <tr>
  33.                <th> Col 1</th>
  34.                <th> Col 2</th>
  35.                <th> Col 3</th>
  36.                <th> Col 4</th>
  37.                <th> Col 5</th>
  38.        </tr>
  39.  
  40.     </thead>
  41.     <tbody>
  42.         <tr>
  43.             <td>Student01</td>
  44.             <td>Languages</td>
  45.             <td>male</td>
  46.             <td>80</td>
  47.             <td>70</td>
  48.            
  49.         </tr>
  50.         <tr>
  51.             <td>Student02</td>
  52.             <td>Mathematics</td>
  53.             <td>male</td>
  54.             <td>90</td>
  55.             <td>88</td>
  56.            
  57.         </tr>
  58.         <tr>
  59.             <td>Student03</td>
  60.             <td>Languages</td>
  61.             <td>female</td>
  62.             <td>85</td>
  63.             <td>95</td>
  64.            
  65.         </tr>
  66.     </tbody>
  67. </body>
  68. </html>


Saludos DTB