Ver Mensaje Individual
  #5 (permalink)  
Antiguo 01/02/2009, 09:17
Avatar de jcxnet
jcxnet
 
Fecha de Ingreso: octubre-2005
Ubicación: Perú
Mensajes: 784
Antigüedad: 18 años, 6 meses
Puntos: 56
Respuesta: Centrar una web en Firefox y en IE

La etiqueta <center> es obsoleta en HTML 4.01, y no es compatible con XHTML 1.0 Strict DTD, lo mejor es usar CSS :
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">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<title>centrar</title>
	<style type="text/css">
        body  {
	   text-align:center;
	   font:10px Verdana, Arial, Helvetica, sans-serif;
	}
	
       #wrap {
	width:500px;
	margin:0 auto;
	padding:5px;
	text-align:left;
	border:1px solid #FF0000;
	}
  </style>
  </head>

<body>
	<div id="wrap">
		<p>Contenido centrado</p>	
	</div>

</body>
</html> 
__________________
►I'm a devil on the run ♂
Jcxnet.com
*Keep It Simple **