Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/07/2009, 21:21
Avatar de deirdre
deirdre
 
Fecha de Ingreso: mayo-2009
Mensajes: 690
Antigüedad: 14 años, 11 meses
Puntos: 45
Respuesta: como puedo mandar mi header hasta arriba?

Hola luciio

Ajusta tus medidas, cambiando los px de esta muestra:

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>Centrar una cabecera en el ancho y ajustarla a cero px arriba</title>
<style type="text/css">
html, body {
	margin: 0;
	padding: 0;
}
#div_header {
	position: absolute;
	width: 600px;
	height: 120px;
	margin-left: -300px; /*aquí pones la mitad del ancho, en valor negativo*/
	top: 0px;
	left: 50%;
	background-color:#ffff66;
	border: 1px solid #484848;
}
</style>
</head>

<body>
<div id="div_header"></div>
</body>

</html> 
Los colores son sólo para testar el resultado.

Bye