Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/11/2008, 21:56
Coplo
 
Fecha de Ingreso: octubre-2008
Mensajes: 155
Antigüedad: 15 años, 5 meses
Puntos: 1
como puedo centrar la imagen con css

Hola a todos, quisiera saber si me puden ayudar a centrar la imagen con css

Código:
<!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=iso-8859-1" />
    	<title>Informatica Empresarial</title>
        
    <style type="text/css">
		* {
		margin: 0;
		padding: 0;
		font-size: 100%;
}
body{
	background-image:url(images/images1.jpg);
	font-size: 16px;
	font-size: 0.8em;
}
	#centrador {
		position: absolute;
		top: 54%;
		left: 0px;
		width: 100%;
		height: 0px;
	}
	#contenido {
	position: relative;
	top: -200px;
	margin-left: auto;
	margin-right: auto;
	height: 400px;
	width: 600px;
	
	padding: 0px;
}
</style>	

</head>

<body>
<div id="centrador">
  <div id="contenido">
    <center>
      <img src="http://www.forosdelweb.com/images/images2.jpg" alt="Haga clic aqui" width="480" height="360" />
    </center>
  </div>
</div>
</body>
</html>