Ver Mensaje Individual
  #4 (permalink)  
Antiguo 28/09/2012, 17:20
Avatar de flashmax
flashmax
 
Fecha de Ingreso: julio-2012
Ubicación: Bs.As. Argentina
Mensajes: 507
Antigüedad: 11 años, 9 meses
Puntos: 86
Respuesta: Necesito un código para centrar el contenido de mi web

hola lo que tienes que hacer es centrar en div contenedor te dejo un ejemplo:

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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<style type="text/css">
.contenedor{
margin:0 auto;
border:3px solid #000;
background-color: #eee;
text-align:center;
max-width:900px;
min-width:700px;
}
</style>
</head>

<div class="contenedor">todo el contenido aqui</div>

</body>
</html> 
__________________
Saludos!
----------------------------------------------------------