Ver Mensaje Individual
  #6 (permalink)  
Antiguo 03/11/2009, 18:28
Avatar de willyfc
willyfc
 
Fecha de Ingreso: octubre-2008
Ubicación: Santa Cruz - Bolivia
Mensajes: 662
Antigüedad: 15 años, 6 meses
Puntos: 40
Respuesta: Problema con div en Internet Explorer

Necesariamente tiene que medir 52px de alto, podrías hacerlo cuadrar usando los mismos rellenos y el tamaño de letra y quedaría algo como lo que querés, tampoco veo que tengas un Doctype definido en la cabecera.

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=iso-8859-1" />
  4. <title>Documento sin t&iacute;tulo</title>
  5.  
  6. h2{width: 381px; border:1px solid green;padding: 10px; font-size:0.9em; font-weight:normal;}
  7.  
  8.  
  9. </head>
  10.  
  11. <h2>Este es el h2</h2> 
  12. </body>
  13. </html>

Puedes variar el padding, el Doctype es muy importante para que el navegador entienda lo que queres hacer.
__________________
WFC
codigo82