Ver Mensaje Individual
  #9 (permalink)  
Antiguo 11/01/2008, 16:46
feral
 
Fecha de Ingreso: septiembre-2007
Mensajes: 184
Antigüedad: 16 años, 7 meses
Puntos: 4
Re: centrar web al centro

Cita:
feral, el width tb lo especifico, la cuestion es k no centra la web.
Ahora quiero tomar encuenta tu sugerencia, pero quisiera me explicaras(en codigo css) como deberia ser?? (recien empiezo en esto y ando un poco confundido).
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>x</title>


<style type="text/css" media="all">
<!-- 
#contenedor { width: 600px; margin: 15px auto 0 auto;  background-color:#CCCCCC; }
-->
</style>

</head>

<body>

<div id="contenedor">
hola
</div>

</body>
</html>