Ver Mensaje Individual
  #11 (permalink)  
Antiguo 25/11/2011, 19:10
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: Aumenta margen con tamaño letra.

No me preguntes por que, ya que necesito hacer varias pruebas para determinarlo, ejecutá este código, revisalo y fijate cual es la diferencia

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. <title>titulo</title>
  4. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  5. <style type="text/css">
  6. /*<![CDATA[*/
  7.  
  8. /* arriba */
  9. div.main{
  10. min-height: 100px; 
  11. margin-top: 10px;
  12. margin-bottom: 10px;
  13. border-radius: 5px;
  14. box-shadow: 0 0 8px 1px #000000;
  15. border: solid transparent 1px;
  16. }
  17.  
  18. div.margin {
  19. border: solid red 1px;
  20. margin-top: 30px;
  21. height: 200px;
  22. }
  23. /* medio */
  24.  
  25. #main {
  26. min-height: 100px;
  27. margin-top: 10px;
  28. margin-bottom: 10px;
  29. border-radius: 5px;
  30. box-shadow: 0 0 8px 1px #000000;
  31. }
  32. div#margin {
  33. border: solid 1px #000;
  34. background: red;
  35. margin-top: 30px;
  36. height: 200px;
  37. }
  38.  
  39. /* abajo */
  40. .principal {
  41. min-height: 100px;
  42. margin-top: 10px;
  43. margin-bottom: 10px;
  44. border: solid red 1px;
  45. border-radius: 5px;
  46. box-shadow: 0 0 8px 1px #000000;
  47. }
  48.  
  49. .contenedor{
  50. border: solid 1px #000;
  51. margin-top: 50px;
  52. height: 200px;
  53. }
  54.  
  55. /* separador */
  56. p{
  57. height: 50px;
  58. line-height: 50px;
  59. padding: 0;
  60. background-color: maroon;
  61. color: #FFF;
  62. vertical-align: middle;
  63. text-align: center;
  64. }
  65.  
  66. /*]]>*/
  67. </head>
  68.    
  69. <div class="main">
  70. <div class="margin">Emprear</div>
  71. </div>
  72.  
  73. <p>Separador</p>
  74. <div id="main">
  75. <div id="margin">mariomon17</div>
  76. </div>
  77. <p>Separador</p>
  78.  
  79. <div class="principal">
  80. <div class="contenedor">Titulo</div>
  81. </div>
  82.  
  83. </body>
  84. </html>

concentrate porque es muy sutil el detalle, ya lo probé en tu web y funciona (todas las pruebas fueron con Firefox 8)

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