Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/06/2008, 08:36
pavelinhos
 
Fecha de Ingreso: diciembre-2005
Mensajes: 97
Antigüedad: 18 años, 4 meses
Puntos: 0
Respuesta: socorro: Código para resolución

Hola currante007, voy a su poner que estas maquetando con css, por lo tanto empieza por poner esto en el css.
Código:
*{margin:0; padding:0}
#contenedor{width:800px; height:600px; margin:10px auto; background-color:#aaccdd}
en el html
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>centrado web</title>
		<link rel="stylesheet" type="text/css" href="estilo.css" />
	</head>
	<body>
		<div id="contenedor">
			<p> este div esta centrado y es donde tendria q ir el contenido de tu web</p>
		</div>  
	</body>
</html> 
__________________
_Derek_