![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
26/10/2009, 00:50
|
![Avatar de JOSANCIN](http://static.forosdelweb.com/customavatars/avatar258910_3.gif) | | | Fecha de Ingreso: septiembre-2008 Ubicación: huesca
Mensajes: 298
Antigüedad: 16 años, 5 meses Puntos: 0 | |
porque hace el ancho pero no el alto? Hola a todos
Escribo el siguiente codigo:
<html>
<head>
<style>
BODY {BACKGROUND-COLOR:yellow ; font-size:1em;}
div {width:300px; height:300px; background-color:blue;}
</style>
<title>
PRUEBA
</title>
</head>
<body>
<div>
hola hola
</div>
</body>
</html>
el ancho si que parece que son 300 px pero el alto es unicamente el tamaño de la linea, ¿sabriais alguno el porque?
Gracias a todos y que vaya bien
J |