CSS - Background que no se ve

 
Vista:

Background que no se ve

Publicado por Zanga (2 intervenciones) el 09/02/2007 15:47:53
Hola, soy nuevo en esto y tengo un pequeño problema con los fondos de mi página. El primero (cabecera) no se ve (aunque si en el navegador le das a ver imagen de fondo si que la muestra) y curiosamente el segundo si que se ve.

Este es el código CSS:

#cabecera {
background: url(images/bg_menu.jpg) no-repeat top left;
margin: 0px;
position: absolute;
top: 0px;
left: 200px;
}
#menu {
background: url(images/bg_menu02.jpg) no-repeat top left;
margin-top: 107px;
margin-left: 200px;
position: absolute;
top: 0px;
left: 0px;
}

Y este el código de la web JSP:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Salud Digital</title>
<script type="text/javascript"></script>

<style type="text/css" title="currentStyle" media="screen">
@import "estructuraWeb.css";
</style>
</head>

<body>
<div id="cabecera">
<%@ include file="/html/cabecera.html" %>
</div>
<div id="menu">
<%@ include file="/html/menu.html" %>
</div>
<div id="mainFrame">
<%@ include file="/jsp/ultimasNoticias.jsp" %>
</div>
</html>

Gracias de antemano y salu2!
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

Background que no se ve

Publicado por Ronny (8 intervenciones) el 22/11/2011 19:27:45
Seguro es por la ruta... actualmente manejas:

1
2
3
4
5
6
7
#cabecera { 
background: url(images/bg_menu.jpg) no-repeat top left;
margin: 0px;
position: absolute;
top: 0px;
left: 200px;
}


Si tu CSS está en otra carpeta, debes dirigir la instrucción adecuadamente, saliendo a raíz.

1
2
3
4
5
6
7
#cabecera { 
background: url(../images/bg_menu.jpg) no-repeat top left;
margin: 0px;
position: absolute;
top: 0px;
left: 200px;
}


Saludos.

que es ssl | timbre fiscal | geotrust | tahwte
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