Hola. Estoy aprendiendo CSS y tengo problemas con el comando "background-image". No se si es q lo estoy poniendo mal o q, pero en el navegador no me sale la imagen de fondo. Os dejo aquí lo poco q llevo hecho a ver si alguien me ve el fallo, pq yo no lo veo:
Documento HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" href="Untitled CSS 2.css" type="text/css">
</head>
<body>
<div id="logo"></div>
</body>
</html>
Y aquí va la hoja CSS:
body {
margin: 0px;
background-color: #fdbe64;
font-family: Arial, Helvetica, sans-serif;
}
#logo {
background-image: url(D:/proyectos_web/web de pruebas/images/Logo.jpg);
background-repeat: no-repeat;
float: left;
width: 100%;
margin: 0px;
padding: 0px;
}
Y al abrir el navegador, no me sale la imagen. ¿Cual es mi fallo?
Gracias.
Un saludo.
Documento HTML:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link rel="stylesheet" href="Untitled CSS 2.css" type="text/css">
</head>
<body>
<div id="logo"></div>
</body>
</html>
Y aquí va la hoja CSS:
body {
margin: 0px;
background-color: #fdbe64;
font-family: Arial, Helvetica, sans-serif;
}
#logo {
background-image: url(D:/proyectos_web/web de pruebas/images/Logo.jpg);
background-repeat: no-repeat;
float: left;
width: 100%;
margin: 0px;
padding: 0px;
}
Y al abrir el navegador, no me sale la imagen. ¿Cual es mi fallo?
Gracias.
Un saludo.