Ya he comprobado dos veces mi URL y el nombre de los archivos, pero parece que la imagen no se muestra. ¿Por qué es así? Aquí está mi código (tome nota que el <p>
está dentro de las etiquetas corporales, no agregué el código completo, solo agregué el encabezado y el problema específico).La imagen de fondo HTML y CSS no se muestra
<html>
<head>
<title>Head First Lounge.</title>
<link type="text/css"
rel="stylesheet"
href="stylesheet/style.css"
media="screen"/>
</head>
<p class = "guarantee">
Our guarantee: at the lounge, we're committed to providing you,
our guest, with an exceptional experience every time you visit.
Whether you're just stopping by to check in on email over an
elixir, or are here for an out-of-the-ordinary dinner, you'll
find our knowledgeable service staff pay attention to every detail.
If you're not fully satisfied, have a Blueberry Bliss Elixir on us.
</p>
Y aquí es la regla CSS para esa parte
.guarantee{
background-image: url(images/background.gif);
font-family: "Geogia", "Times New Roman", Times, serif;
border-color: black;
border-width: 1px;
border-style: solid;
background-color: #a7cece;
padding: 25px;
margin: 30px;
line-height: 1.9em;
font-style: italic;
color: #444;
}
¿Cuál es la url de la imagen? /images/background.gif o /stylesheet/images/background.gif – KingCronus
se encuentra image/background.gif. esa es la página HTML principal. – user962206
cambiar 'background-image: url (../ images/background.gif)' –