Bonjour à tous ;
je débute en html et css ; et en ce moment je crée une application php ; mais voilà je suis confronté à un problème que j'ai dû mal à résoudre durant qlq semaines et que çà commence à me casser la tête :
voici le code :
la partie 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
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
168
169
170 <html> <head> <link rel="stylesheet" media="screen"type="text/css" title="styleAuto" href="auto.css"/> </head> </html> <body> <html> <head> <title>Fonction recherche</title> <!-- <link rel="stylesheet" media="screen"type="text/css" title="styleAuto" href="recherch.css"/> --> <!-- <link rel="stylesheet" media="screen"type="text/css" title="styleAuto" href="auto.css"/> --> </head> <body> </body> </html> </body> </html> <fieldset class="general"><legend>Général </legend> <label>Client:</label> <label class="gen"> Ronaldo <br /> </label> <label>Cabinet:</label> <label class="gen">Michel </label><br /> <label> Dossier Complet:</label> <input type="checkbox" name="complet" checked="true" /> <br /> <label>Type de paiement :</label> <label class="gen">Prélèvement automatique </label> <br /> <label>Numéro client :</label> <label class="num">2007 </label></fieldset> <body> <fieldset class="police"> <legend>Police :</legend> <table class="tablepolice"> <tbody> <tr><td>Police :</td> <td class="pol">Automobile</td> <td>Contrat soumis Révision :</td> <td colspan="5"> <input type="checkbox" name="complet" /> </td> </tr> <tr> <td> <label> Contrat :</label></td> <td class="valeur">PPE</td> <td>Compagnie:</td><td colspan="3"class="valeur">RISQUES PARTICULIERS</td> <td>Paiement :</td><td class="valeur">Mensuel</td> </tr> <tr> <td>Date création :</td> <td class="valeur">29/01/2007 </td> <td>Date perte :</td> <td class="valeur"> </td> <td>Avenants :</td> <td class="valeur"> </td> <td>Prime TTC :</td> <td class="valeur">0 </td> </tr> <tr> <td>Numéro :</td> <td class="pol">4156879</td> <td>Date effet:</td><td class="valeur">29/01/2007</td><td>Indice:</td> <td class="valeur">0.0</td><td>Gestion:</td><td class="valeur"> Non Confiée</td> </tr> <tr> <td>Etat :</td><td class="valeur">En cours</td> <td>Date écheance :</td> <td class="valeur">01/02/2008</td> <td>Relance :</td> <td> </td><td>Apporteur:</td> <td class="valeur"> Aucun </td> </tr> <tr> <td>Cont:</td><td class="valeur">Aucun</td> <td>Rés./susp</td> <td class="pol"> </td> <td>Historique:</td> <td class="valeur"></td> <td>Commercial:</td> <td> </td> </tr> </tbody> </table> </fieldset><fieldset class="conducteur"> <legend>Conducteur</legend> <label for="bonusAncien"> Conducteur habituel:</label> <label class="gen">Ronaldo</label><br /> <label for="bonusAncien">Né le :</label> <label class="gen">09/06/1969 </label> <br /><label for="bonusAncien"> Numéro permis:</label> <label class="num">020977439 </label><br /> <label for="bonusAncien"> Permis:</label> <label class="gen">B<br /> </label><label for="bonusAncien">Date Permis:</label> <label class="gen">25/09/2006 </label> </fieldset> <fieldset class="vehicule"> <legend>Véhicule</legend> <div class="tetevehicule"> <label for="categorie">Catégorie:</label><label class="gen"> <strong>V.Particulier </strong> </label> <br/> <label for="marque">Marque:</label> <label class="gen">VOLKSWAGEN </label><br /> <label for="bonusAncien">Bonus Malus Ancien :</label> <label class="gen"> </label> <br /> <label for="bonusAncien">Bonus Malus :</label> <label class="gen">1,00 </label><br /> <label for="bonusAncien"> Condition generales :</label> <label class="gen"> </label><br /> <label for="bonusAncien"> Date Condition generales :</label> <label class="gen"> </label> <br/> <label for="bonusAncien"> Mise en circulation :</label> <label class="gen">04/09/1986 </label></div><div class="milieuvehicule"> <br /> <label for="bonusAncien"> Type de véhicule :</label> <label class="gen">GOLF C<br /> </label> <label for="bonusAncien"> Cylindree :</label> <label class="gen">06</label><br /> <label for="bonusAncien"> Immatriculation:</label> <label id="immat">723 WL 93</label><br /> <label for="bonusAncien">Modèle:</label><label class="gen">19MH12 </label><br /> <label for="bonusAncien">Numéro de série:</label> <label class="gen">WVWZZZ19Z6513<br /> </label> <label for="bonusAncien"> Poids TTC :</label> <label class="gen">1T360 </label><br/> <label for="bonusAncien"> Nombres de places :</label><label class="gen">5</label> </div> <div class="remorque"><fieldset><legend><i>Remorque</i></legend><label>Marque:</label> <label class="gen"></label><br /><label>Immatriculation:</label> <label class="gen"> </label><br /> <label>Valeur:</label> <label class="gen">.0000 </label><br /> <label>Année:</label> <label class="gen"> </label> <br /> <label>PTC:</label> <label class="gen">0 </label> <br /> </fieldset> </div></fieldset> <fieldset class="utilisation"> <legend>Utilisation </legend> <label for="bonusAncien">Usage Compagnie :</label> <label class="util">DPP </label><br /> <label for="bonusAncien">Conduite exclusive :</label><input type="checkbox" name="complet" /> <label id="zone"> Zone :</label> <label class="gen"> </label><br /> <label id="autreconducteur"> Autre Conducteur :</label> <label class="util"></label><br /> <label for="bonusAncien"> Date naissance :</label><label class="util"> </label><br /> <label for="bonusAncien"> Permis :</label><label class="util"> </label><br /> <label for="bonusAncien"> numero permis :</label> <label class="numpermis"> </label><br /><label for="bonusAncien"> Date permis :</label><label class="util"> </label> <br /> </fieldset> <fieldset class="garanties"><legend>Garanties:</legend> <div id="partie1"> <label for="bonusAncien"> RCPJ :</label><input type="checkbox" name="complet" checked /> <br /> <label for="bonusAncien">Bdg :</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien">Vol :</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien">Incendie :</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien">Tempetes :</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien">Cat.nat :</label><input type="checkbox" name="complet" checked /><br /> <label for="bonusAncien">DTA :</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien"> Access :</label> <input type="checkbox" name="complet" /><br /> <label for="bonusAncien"> Effets :</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien"> Conducteur :</label><input type="checkbox" name="complet" checked/><br /> <label for="bonusAncien">Véh remp:</label> <input type="checkbox" name="complet" /><br /> <label for="bonusAncien">Ind leasing:</label><input type="checkbox" name="complet" /><br /> <label for="bonusAncien">Dom.Collision:</label><input type="checkbox" name="complet" /> </div> <div id="partie2"> <fieldset class="montant"> <legend><i>Franchise et Montants</i></legend><label for="bonusAncien">Franchise Vol:</label>0 <br /><label for="bonusAncien">Franchise incendie:</label>0 <br /> <label for="bonusAncien">Franchise dommage:</label>0 <br /> <label for="bonusAncien">Franchise tempetes:</label>0 <br /> <label for="bonusAncien">Franchise effets:</label>0 <br /> <label for="bonusAncien">Franchise conducteur:</label>0 <br /> <label for="bonusAncien">Franchise accessoires:</label>0 <br /> <label for="bonusAncien">Franchise conducteur exclusif:</label><br /> <label for="bonusAncien">Franchise Catastrophe nat:</label>.0000 <br /> <label for="bonusAncien">Franchise Dom.Collision:</label>0 <br /> <label for="bonusAncien">Conducteur novice:</label><input type="checkbox" name="complet" checked /> <br /><label for="bonusAncien">Franchise Conducteur novice:</label><label class="gen">750.00 </label> <br /> <label for="bonusAncien">Montant effets:</label>0 <br /></fieldset></div><fieldset class="infos"> <legend><i>Autres Infos</i></legend><label for="bonusAncien">Date controle technique:</label><br /> <label for="bonusAncien"> Optique comprise:</label><input type="checkbox" name="complet" /> <br /></fieldset> <fieldset class="protection"><legend><i>Protections</i></legend> <label>Gravage</label><input type="checkbox" name="complet" /><br /><label>Alarme Agréé</label><input type="checkbox" name="complet" /> <br /> <label>Type de garage:</label> <label class="gen">Voie publique</label><br /> </fieldset></fieldset><br />
si vous tester ces codes ; vous allez être confronté à un problème délicat et j'en suis sûr que c'est la partie css qui est la cause vu que je ne maitrise pas trop :
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301 * { background-color: white; } fieldset { /* background-color: silver; */ background-color: white; } legend { font-weight: bold; font-size: large; font-style: italic; } /* fieldset general */ .general { display: block; width: 38%; height: 4.5cm; } /*les labels valeurs ds generation*/ .gen { color: blue; text-align: center; font-size: large; } .num { color: red; font-size: large; } label,td { font-family: Verdana,Arial,Helvetica,sans-serif; font-size: medium; font-weight: bolder; } /* fieldset police */ .police { border-top-width: 10px; border-top-color: red; border-bottom-width: 10px; border-bottom-color: red; } .pol { color: red; text-align: center; } .tablepolice { border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-top-style: solid; border-right-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px; height: 5cm; width: 100%; } .tablepolice td { border-right-style: solid; border-left-style: solid; border-bottom-style: solid; border-top-style: solid; border-right-width: 1px; border-left-width: 1px; border-bottom-width: 1px; border-top-width: 1px; border-collapse: collapse; } .valeur { color: blue; text-align: center; } /* on passe au conducteur */ .conducteur { display: block; width: 30%; position: absolute; left: 40%; top: 1%; height: 4.5cm; } /*on passe au fieldset utilisation*/ .utilisation { width: 25.5%; position: absolute; height: 4.5cm; top: 1%; left: 72%; } /* pour la zone */ #zone { margin-left: 0.5cm; } .numpermis { color: red; } .util { font-size: large; color: blue; } /* pour autre conducteur */ #autreconducteur { font-style: italic; text-decoration: underline; } /* vehicule */ #immat { color: red; } .milieuvehicule { display: block; position: absolute; left: 500px; top: 445px; height: 5cm; } .remorque { display: block; width: 30%; position: absolute; left: 69.5%; top: 451px; } #partie2 { display:block ; position: absolute; top: 655px; left: 500px; } /* garantie fieldset*/ .garanties { display: block; } /*protection */ .protection { display: block; width: 27.5%; position: absolute; left: 70%; top: 660px; } .infos { display: block; width: 27.5%; position: absolute; left: 70%; top: 800px; } /*franchise et montant */ .montant { display: block; height: 6.5cm; left: 50%; top: 90%; } /* fieldset residence - veranda -protection */ .residence { width: 10%; }
le premier problème ; les fieldset qui seront placés selon le code css
dès fois s'affiche pas dans la bonne position je veux dire au lieu d'être aligné ; s'écarte et encore pire dès fois l'affichage diffère selon le navigateur (IE ou firefox ) ; je ne sais pas trop ce qui m'a surpris c'est que j'ai testé le même code sur firefox sur mon portable ; et quand je voulais tester et installer sur un autre avec firefox çà se comporte différemment et même la police n'est plus la même
pire sur IE rien ne va plus ; les fieldset qui se met n'importe où ; avec des caractères très grand ; il faut toujours réduire le zoom
si quel'qu'un aura une solution à tout ces prblèmes ; je serai ravi
merci d'avance
Partager