Ho già controllato l'URL e il nome dei file, ma non riesco a visualizzare l'immagine. Perché è così? Ecco il mio codice (prendi nota che lo <p>
si trova all'interno dei tag del corpo, non ho aggiunto il codice completo, ho solo aggiunto la testa e il problema specifico).HTML e CSS L'immagine di sfondo non viene visualizzata
<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>
Ed ecco la regola CSS per quella 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;
}
Qual è l'URL dell'immagine? /images/background.gif o /stylesheet/images/background.gif – KingCronus
si trova image/background.gif. questa è la pagina HTML principale. – user962206
cambia 'background-image: url (../ images/background.gif)' –