HTML - Problema imagen fondo IE y Chrome

 
Vista:

Problema imagen fondo IE y Chrome

Publicado por Carlos (1 intervención) el 08/09/2009 11:45:57
Hola, soy nuevo en esto de la programación de páginas web y me he encontrado un problema que me está volviendo loco...Básicamente me gustaría saber si se os ocurre que puede estar mal en estas líneas:

#fondo{background: url("fondo.png")no-repeat;height: 551px; width:753px; left: 262px; top: 201px; position:absolute; background-position:center; }

Esas líneas están incorporadas en un .css. El tema es que tengo un DIV que quiero que tenga esa imagen de fondo, en firefox me funciona, pero en chrome y IE no...

Alguna sugerencia?

Gracias!
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
Imágen de perfil de Bet7o

RE:Problema imagen fondo IE y Chrome

Publicado por Bet7o (31 intervenciones) el 08/09/2009 20:14:56
Haber cheka esto.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Prueba de scroll en capas con JavaScript</title>
<style type="text/css">
#contenedor{
position:absolute;
background: url(Loader.gif) no-repeat center center;
width:753px;
height:551px;
left: 50%;
top: 50%;
margin-left: -376px;
margin-top: -275px;
}
</style>
</head>
<body>
<div id="contenedor">
</div>
</body>
</html>

-----------------------------------------------
Saludos!
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar