Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2009, 06:16
xurxinho
 
Fecha de Ingreso: marzo-2009
Mensajes: 171
Antigüedad: 15 años, 1 mes
Puntos: 4
Aclaraciones de diseño

Os dejo el código visto hasta ahora y pregunto dos cosillas:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es-es">
<head>
<title>Documento sin t&iacute;tulo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
* { margin: 0px;
	padding: 0px; 
	outline: 0;
}
html, body { 
	width: 100%;
	height: 100%;
}
#contenedor{
	margin:0px auto;
	width:850px;
	background-color:#E9E7E3;
	height:100%;
}
#cabecera {
	width: 100%;
	text-align: center;
}

#menu{
background-color: #333;
height: 34px;
border:1px solid #333;
}
#menu ul {
	text-align: center;
	list-style-type: none;
}
#menu ul li {
	float: left;
	width: 25%;	
}
#menu ul li a {
	display:block;
	text-decoration:none;
}

</style>
</head>
<body>
<div id="contenedor">
	<div id="cabecera"><img alt="Imagen Superior de Página" src="BS.jpg" /></div>
	<div id="menu">
		<ul>
			<li>
				<a href="#">Uno</a>
			</li>
			<li>
				<a href="#">Dos</a>
			</li>
			<li>
				<a href="#">Tres</a>
			</li>
			<li>
				<a href="#">Cuatro</a>
			</li>
		</ul>
	</div>	
</div>
	<a href="http://validator.w3.org/check?uri=referer">validadr</a>	
</body>
</html> 
1. En <div id="cabecera"><img alt="Imagen Superior de Página" src="BS.jpg" /></div>, mozilla me deja un margen inferior de 5 px, cómo corregirlo sin recurrir a valores negativos (margin-bottom:-5px) puesto que se cortaría la imagen en explores.
2. Si en #menu, no añado la línea border:1px solid #333; en explore el último elemento de la lista pasa a otra línea de bloque, ¿por qué???


La parte 1 lo arregle añadiendo a #cabecera line-height: 0%;. No sé si será correcto.

Última edición por xurxinho; 13/04/2009 a las 06:24 Razón: 1 arreglado