Bonjour,
Je suis en train de réaliser un site en essayant au maximun d'apporter une compatibilité IE/FF (les autres ont verras plus tard, mais Opera réagi quasi comme FF)K.
J'uilise le fameuxCSS seulement interprété par IE, mais voila je trouve pas ça péreint comme solution. Regarder un peut ma feuille de style.
Code : Sélectionner tout - Visualiser dans une fenêtre à part * html ...vous voyez c'est pas super beau. Surtout avec des positions en absolute et fixer des élements grâce aux pixels (à taton).
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
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328 html { margin: 0; padding: 0; } body { color: #6E7B88; background-color: #FFFFFF; background-image: url('../image/bg.gif'); font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; width: 988px; margin:auto; } form.index-formal-connexion /** must be in the home page */ { position: absolute; top: -247px; /** - (body.width / 4) */ width: auto; height: auto; } form.index-formal-connexion p { position:relative; display:block; text-align:left; left: 100px; /** hasard **/ top: -25px; } div#header-left { position: absolute; top:0px; float: left; background-image: url('../image/logotitle_shadow_3.gif'); width: 290px; height: 120px; z-index: 20; } div#header-center { position: absolute; top: 0px; background-image: url('../image/topcenter3.gif'); height: 120px; width: 768px; /** the body total width - header-right.width */ z-index:18; } div#header-right { position: relative; float: right; background-image: url('../image/right3.gif'); width: 220px; height: 120px; z-index: 20; } div.body { position: relative; top: 120px; border-right: 7px solid #D2CAC4; border-left: 6px solid #D2CAC4; background-color: #FFFFFF; width: 975px; /** I don't know why but presto and gecko display it well */ z-index: 10; } div.message { position: relative; top: 100px; /** the header - 20 px */ width: 55%; left: 23%; z-index: 50; padding-left: 4px; } div.search-engine { position: relative; float: right; z-index: 10000; top: 95px; left: 50px; } div.separator { position: relative; top: 120px; /* the header left height */ background-image: url('../image/bgpathside.jpg'); height: 16px; z-index: 20; border-left-width: 6px; border-left-style: solid; border-left-color: #D2CAC4; border-right-width: 7px; border-right-style: solid; border-right-color: #D2CAC4; } div.body { position: relative; top: -30px; min-height: 600px; /** screen / 3 */ } div.menu { position: relative; top: 140px; /* the header height + the seprator height + 4 px */ z-index: 3; width: 21%; } div.content-separator { position: absolute; top: 0px; /* div.menu margin-top - div.menu padding-top */ left: 100%; /** the width of div.menu */ width: 2px; /* the width of image */ height: 600px; /** div body height */ z-index: 3; background-image: url('../image/bg.gif'); background-repeat: repeat-x; min-height: 460px; /* same as div.body.style.min-height - div.header-right - div.separtor */ } div.content { position: relative; float: right; top: -180px; /* - header right - message + 5 px*/ width: 78%; height: auto; z-index: 3; padding-left: 2%; } div.foot { position: relative; top: -30px; } div#footer-left { position: relative; float: left; background-image: url('../image/left_bottom.jpg'); width: 40px; height: 25px; z-index: 20; } div#footer-center { position: relative; background-image: url('../image/bottom.jpg'); height: 25px; /** the image width */ width: 961px; /** the body total width - footer-right.width */ z-index:15; } div#footer-right { position: relative; float: right; background-image: url('../image/right_bottom.jpg'); width: 27px; height: 25px; z-index: 20; top: -25px; /** footer-center-height */ left: 787px; /** I DONT KNOW WHY */ } li { list-style-type: none; } li.action, li.action a:link, li.action a:visited { font-family: arial; font-size: 14px; font-weight: bold; text-decoration: none; height: 20px; padding: 4px; padding-left: 4%; font-weight: bold; color: #6E7B88; list-style-type: none; list-style-position: inside; margin-left: -20px; } a:link,a:visited { font-family: Verdana; text-decoration: none; color: #6E7B88; } a:hover { font-family: Verdana; text-decoration: underline; } img { border: none; } img.right { position: relative; float: right; top: -50px; } p.opener { background-image: url('../image/add.png'); background-repeat: no-repeat; width: 10px; height: 10px; } div.hidden { visibility: hidden; } p { display: inline; } div.indented { margin-left: 8%; } div.content div /** all division present in content */ { margin-bottom: 2px; } p.information { color: #000000; font-weight: bolder; } div.right-action { position: relative; } div.right-administration { position: relative; float: right; top: -150px; padding-left: 30%; border-left-width: 0.2px; border-left-style: solid; border-left-color: #000000; } div#private { position: relative; float: right; top: -42px; /** top of right administration + 18 per right action div before private package (6) */ left: 200px; } label { font-weight: bolder; } * html div#header-right { float: right; left: -272px; } * html div.separator { position: absolute; top: 120px; /** header height */ width: 988px; /** the body's height */ } /* BEGIN IE HACKS ;-) */ * html div.body { position: relative; width: 988px; /** redeclaration, ??? */ height: 600px; } * html div.search-engine { position: relative; left: -220px; top: 86px; } * html div.body div.menu ul { padding-left: 54px; } * html div.content { position: relative; top: -250px; } * html div.foot { position: relative; } * html div#footer-center { position: relative; left: -20px; /** I DONT KNOW */ } * html div#footer-right { position: relative; float: right; left: -270px; /** I DONT KNOW */ } * html div.menu ul { margin-left: 0px; } * html div.menu ul { float: left; clear: both; } * html div.menu ul li { width:294px; float:left; padding-left: 16px; text-align:left; line-height: 27px; } /** END OF HACKING */
Qu'est ce que vous me conseilleriez de faire ?
bon d'accord, ma feuille de style est 100% valide mais voila je trouve que cette situation n'est pas vraiement péreine
PS : Je débute dans le monde du Web "standards".
Partager