Bonjour @ tous.

Je suis actuellement en train de travailler sur le thème WordPress suivant : http://andersnoren.se/themes/hitchcock/ et il y a en fond d'écran une image que je n'arrive pas à mettre aux dimensions du Body.

Pour le moment la hauteur prise en compte n'est que "limitée". J'arrive à faire bouger cette hauteur manuellement (En modifiant la valeur height: 100vh, mais pas automatiquement.

Voici le 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
40
41
 
.header-image {
	padding: 0;
	position: absolute;
	z-index: 1;
	right: 0;
	left: 0;
}
 
.header-image,
.header-image:after {
	height: 900px;
	height: 100vh;
	min-height: 100%;
	position: absolute;
	z-index: 1;
	right: 0;
	left: 0;
}
 
.header-image {
	background-image: url(images/bg.jpg) no-repeat center center fixed;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: cover;
}
 
.header-image:after { 
	content: "";
	display: block;
	z-index: 2;
	top: 0;
	background: #1d1d1d;
	background: -moz-linear-gradient(top, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.4) 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.2)), color-stop(100%,rgba(255,255,255,0.4)));
	background: -webkit-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
	background: -o-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
	background: -ms-linear-gradient(top, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
	background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%,rgba(255,255,255,0.4) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#331d1d1d', endColorstr='#1d1d1d',GradientType=0 );
}
Et voici la balise en question

Code : Sélectionner tout - Visualiser dans une fenêtre à part
<div class="header-image" style="background-image: url(http://monsite.com/wp-content/themes/images/bg.jpg);"></div>
Auriez-vous une piste à m'indiquer ?

Par avance merci.

Xaver