Bonjour à tous,

Dans un fichier .HTML, je souhaite afficher une image comme fond d'écran sur une page web.

Je déclare bien l'instruction background-image dans un fichier css séparé, cependant je n'arrive pas à trouver la solution pour qu'il puisse l'afficher. Pourriez vous avoir un aperçu, et me dire où est le problème ?

Mon code HTML
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="fr" xml:lang="fr" xmlns="http://www.w3.org/1999/xhtml">
<head>  
	<title>Page title</title>  
	<link rel="stylesheet" type="text/css" href="./Styles/struct.css" />
	<link rel="stylesheet" type="text/css" href="./Styles/struct-mid.css" />
	<link rel="stylesheet" type="text/css" href="./Styles/struct-center.css" />
</head>  
<body class="bck_img_3">
</body>  
</html>
Mon code CSS
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.bck_img_3
{
	background:url('Images/kl_3.jpg');
 
	background-size:100% 100%;
	background-repeat:no-repeat;
} 
div#header{
	margin:auto;
	width:100%;
}
div#corps_main{
	margin:auto;
	border:1px solid div#00CCFF;
	width:100%;
}
div#footer{
	margin:auto;
	border:1px solid div#00CCFF;
	width:100%;
	clear:both;
}
.headersheet{
	width:100%;
}
.bck_img_2{
	background-image: url("Images/kl_3.jpg");
}
.bck_img_1 {
    height: auto;
    left: 0;
    min-height: 100%;
    min-width: 1024px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: -1000;
 
}
Merci d'avance.

Cordialement