Bonjour,
J'ai un soucis, je fais l'entete d'un site internet, mais comme je suis plutot mauvais en css, je n'obtiens pas ce que je recherche...
Voici mon code :
Code CSS :
Code html :
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167 #conteneur { width: auto; display: block; border-width: 0px; border-style: none; height: auto; } #header { display: block; width: auto; text-align:center; border-width: 0px; border-style: none; height: 179px; } #header_haut{ display: block; width: 100%; border-width: 0px; border-style: none; height: 109px; } #header_haut_g { background-image:url("header_gauche_b.jpg"); background-attachment:fixed; width: 10px; height: 109px; display: inline; border-width: 0px; border-style: none; } #header_haut_d { background-image:url("header_droite_b.jpg"); background-attachment:fixed; width: 6px; height: 109px; display: inline; border-width: 0px; border-style: none; } #header_haut_centre { background-image:url("header_centre_b.jpg"); background-attachment:fixed; width: 96%; height: 109px; display: inline; text-align:left; border-width: 0px; border-style: none; } #header_bas { width: 100%; display: block; margin:0px; border-width: 0px; border-style: none; height: 70px; } #header_bas_g { background-image:url("header_gauche_r.jpg"); background-attachment:fixed; width: 10px; display: inline; height: 70px; border-width: 0px; border-style: none; } #header_bas_d { background-image:url("header_droite_g.jpg"); background-attachment:fixed; width: 6px; height: 70px; display: inline; border-width: 0px; border-style: none; } #header_bas_centre { background-image:url("header_centre_r.jpg"); background-attachment:fixed; height: 70px; width: 46%; display: inline; border-width: 0px; border-style: none; } #header_bas_centre2 { width: 62px; height: 70px; border-width: 0px; display: inline; border-style: none; } #header_bas_centre3 { background-image:url("header_centre_g.jpg"); background-attachment:fixed; height: 70px; width: 50%; display: inline; border-width: 0px; border-style: none; } #logo { background-image:url("logo.gif"); background-attachment:fixed; margin-top:5px; width:537px; height:71px; background-repeat:no-repeat; } #menu_g{ width:auto; height:27px; padding-right:5px; text-align:right; } #menu_d{ width:auto; height:27px; padding-left:5px; text-align:left; } #recherche_header{ text-align:left; padding-left:5px; height:40px; } #panier{ text-align:right; padding-right:5px; height:40px; } input, input.option{ margin:0px; color: #7f9db9; border-width:1px; } .image { border:0px; margin:0px; } .recherche_text{ color:#8a6e7e; font-family:Arial, Helvetica, sans-serif; font-size:10px; } .panier_text{ color:#000000; font-family:Arial, Helvetica, sans-serif; font-size:12px; }
Le probleme sont les suivants :
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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <!--meta / title / ... --> <link href="charte/style.css" rel="stylesheet" type="text/css"> </head> <body> <div id="conteneur"> <div id="header"> <div id="header_haut"> <div id="header_haut_g"></div> <div id="header_haut_centre"> <div id="logo"></div> </div> <div id="header_haut_d"></div> </div> <div id="header_bas"> <div id="header_bas_g"></div> <div id="header_bas_centre"> <div id="menu_g"> <img src="charte/navigation/promotions_off.gif" id="promotion_btn" border="0" onMouseOver="this.src='charte/navigation/promotions_on.gif'" onMouseOut="this.src='charte/navigation/promotions_off.gif'"><img src="charte/navigation/nouveautes_off.gif" border="0" onMouseOver="this.src='charte/navigation/nouveautes_on.gif'" onMouseOut="this.src='charte/navigation/nouveautes_off.gif'"><img src="charte/navigation/idee_cadeau_off.gif" border="0" onMouseOver="this.src='charte/navigation/idee_cadeau_on.gif'" onMouseOut="this.src='charte/navigation/idee_cadeau_off.gif'"><img src="charte/navigation/top_des_ventes_off.gif" border="0" onMouseOver="this.src='charte/navigation/top_des_ventes_on.gif'" onMouseOut="this.src='charte/navigation/top_des_ventes_off.gif'"> </div> <div id="recherche_header" class="recherche_text"><form action="recherche.php"method="post">Recherche rapide : <input type="text" size="18" id="ref" name="ref" value="Modèle ou référence" onFocus="this.value=' '" onBlur="if(this.value=' ')this.value='Modèle ou référence'"> <input src="charte/navigation/recherche_fleche.gif" type="image" value="submit" align="middle" > <select name="menu1" onchange="MM_jumpMenu('parent',this,0)"> <option>Recherche par marque</option> <option>Marque1</option> <option>Marque2</option> <option>Marque3</option> <option>Marque4</option> </select></form> </div> </div> <div id="header_bas_centre3"> <div id="menu_d"> <img src="charte/navigation/accueil_off.gif" border="0" onMouseOver="this.src='charte/navigation/accueil_on.gif'" onMouseOut="this.src='charte/navigation/accueil_off.gif'"><img src="charte/navigation/cgv_off.gif" border="0" onMouseOver="this.src='charte/navigation/cgv_on.gif'" onMouseOut="this.src='charte/navigation/cgv_off.gif'"><img src="charte/navigation/contact_off.gif" border="0" onMouseOver="this.src='charte/navigation/contact_on.gif'" onMouseOut="this.src='charte/navigation/contact_off.gif'"><img src="charte/navigation/newsletter_off.gif" border="0" onMouseOver="this.src='charte/navigation/newsletter_on.gif'" onMouseOut="this.src='charte/navigation/newsletter_off.gif'"><img src="charte/navigation/showroom_off.gif" border="0" onMouseOver="this.src='charte/navigation/showroom_on.gif'" onMouseOut="this.src='charte/navigation/showroom_off.gif'"> </div> <div id="panier" class="panier_text"><b>0 article(s), montant : 0 €</b> <img src="charte/panier.gif" class="image" align="middle" border="0"> </div> </div> <div id="header_bas_d"></div> </div> </div> </div> </body> </html>
- décalage au niveau de la div "menu_d" sur IE
- pas d'affichage des background-image sous Firefox
Merci d'avance pour votre aide![]()
Partager