je veux faire une image dans mon en tête mais l'image reste non lu c'est cette ligne qui pose problème
dernier ligne du code l'image est dans le même emplacement que le html css et le reste
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 form{ background-image: url("cdn-entreprise.jpg"); }
voilà mon 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66 p{ font-size: 20px; color: blue; } body{ background-image: url("download.jpg"); background-size: 100%; } nav ul{ padding:10px; margin: 0px; list-style-type: none; background-color: yellow; } nav li{ display: inline-block; padding:0px; margin: 0px; width: 100px; height: 30px; border-right: 10px red; text-align: center; line-height: 30px; } nav ul a { display: block; text-decoration: none; } nav li:hover { background-color: #3388BB ; } nav ul { padding-left: 900px; } form ul { padding:10px; margin: 0px; list-style-type: none; background-color: red; } form li{ display: inline-block; padding:0px; margin: 0px; width: 100px; height: 0px; border-right: 10px red; text-align: center; line-height: 30px; } form ul input{ display: block; text-decoration: none; } form ul { padding-left: 1000px; } h1 { color: red; } h2 { color: white; } form{ background-image: url("cdn-entreprise.jpg"); }
Partager