Je n'arrive pas à afficher mes images... L'image se trouve bien dans le répertoire adéquat et porte bien le même nom
voilà mon code:
[code html]
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr">
<head>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<h2>Image à afficher</h2>
</body>
</html>
[/code html]
[code css]
h2{
margin: 0;
padding: 0;
height: 150px;
background: url(/img/image.jpg) center;
}
[/code css]
Partager