Bonjour,

J'ai décidé d'appliquer certaines propriétés CSS aux ascenseurs de mon site, mais j'ai l'impression que les propriétés ne s'appliquent qu'à l'intérieur du div de la page.

Voici mon 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
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
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
 
@charset "utf-8";
em
{
	font-style:italic;
}
h1  /* Titres principaux */
{
	font-size:xx-large;
	line-height:30px;
	text-align:center;
}
h2
{
	font-size:x-large;
	text-align:left;
}
h3
{
	font-size:large;
	text-align:left;
}
h4
{
	font-size:medium;
	text-align:center;
}
p
{
	font-size:small;
	text-indent:30px; /* Indentation du paragraphe */
	color:#990033;
}
.trestrespetit /* Texte en très très petit */
{
	font-size:xx-small;
}
.trespetit /* Texte en très petit */
{
	font-size:x-small;
}
.petit /* Texte en petit */
{
	font-size:small;
}
.moyen /* Texte en moyen */
{
	font-size:medium;
}
.grand /* Texte en grand */
{
	font-size:large;
}
.tresgrand /* Texte en très grand */
{
	font-size:x-large;
}
.trestresgrand /* Texte en très très grand */
{
	font-size:xx-large;
}
.gras
{
	font-weight:bold;
}
.gauche
{
	text-align:left;
}
.centre
{
	text-align:center;
}
.droite
{
	text-align:right;
}
.endofpage
{
	text-align:center;
	font:Geneva, Arial, Helvetica, sans-serif;	
}
h5
{
	font-size:small;
	text-align:left;
}
h6
{
	font-size:x-small;
	text-align:left;
}
body  {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	background-color:#7480E9;
	margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
	padding: 0;
	text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
 
.twoColElsLtHdr {
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
 
/* Tips for Elastic layouts 
1. Since the elastic layouts overall sizing is based on the user's default fonts size, they are more unpredictable. Used correctly, they are also more accessible for those that need larger fonts size since the line length remains proportionate.
2. Sizing of divs in this layout are based on the 100% font size in the body element. If you decrease the text size overall by using a font-size: 80% on the body element or the #container, remember that the entire layout will downsize proportionately. You may want to increase the widths of the various divs to compensate for this.
3. If font sizing is changed in differing amounts on each div instead of on the overall design (ie: #sidebar1 is given a 70% font size and #mainContent is given an 85% font size), this will proportionately change each of the divs overall size. You may want to adjust based on your final font sizing.
*/
.twoColElsLtHdr #container { 
	width: 46em;  /* this width will create a container that will fit in an 800px browser window if text is left at browser default font sizes */
	background-color:#7480E9;
/*	margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
/*	border: 1px solid #000000;
	text-align: left; /* this overrides the text-align: center on the body element. */ 
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
} 
.twoColElsLtHdr #header { 
	/*background-image:url('http://luca.merciadri.free.fr/ventepc/NEW/_img/ban.jpg');*/
/*	padding: 0 10px;   this padding matches the left alignment of the elements in the divs that appear beneath it. If an image is used in the #header instead of text, you may want to remove the padding. */
} 
.twoColElsLtHdr #header h1 {
/*	margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
/*	padding: 10px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
}
 
/* Tips for sidebar1:
1. Be aware that if you set a font-size value on this div, the overall width of the div will be adjusted accordingly.
2. Since we are working in ems, it's best not to use padding on the sidebar itself. It will be added to the width for standards compliant browsers creating an unknown actual width. 
3. Space between the side of the div and the elements within it can be created by placing a left and right margin on those elements as seen in the ".twoColElsLtHdr #sidebar1 p" rule.
*/
.twoColElsLtHdr #sidebar1 {
	float: left;
	width: 12em; /* the background color will be displayed for the length of the content in the column, but no further */ 
/*	padding: 15px 0; /* top and bottom padding create visual space within this div */
	/* background-color: #ACB4F2; */
	background-color: #7480E9;
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
.twoColElsLtHdr #sidebar1 h3, .twoColElsLtHdr #sidebar1 p {
/*	margin-left: 10px; /* the left and right margin should be given to every element that will be placed in the side columns */
/*	margin-right: 10px; */
}
 
/* Tips for mainContent:
1. If you give this #mainContent div a font-size value different than the #sidebar1 div, the margins of the #mainContent div will be based on its font-size and the width of the #sidebar1 div will be based on its font-size. You may wish to adjust the values of these divs.
2. The space between the mainContent and sidebar1 is created with the left margin on the mainContent div.  No matter how much content the sidebar1 div contains, the column space will remain. You can remove this left margin if you want the #mainContent div's text to fill the #sidebar1 space when the content in #sidebar1 ends.
3. To avoid float drop, you may need to test to determine the approximate maximum image/element size since this layout is based on the user's font sizing combined with the values you set. However, if the user has their browser font size set lower than normal, less space will be available in the #mainContent div than you may see on testing.
4. In the Internet Explorer Conditional Comment below, the zoom property is used to give the mainContent "hasLayout." This avoids several IE-specific bugs that may occur.
*/
.twoColElsLtHdr #mainContent {
	margin: 0 1.5em 0 13em; /* the right margin can be given in ems or pixels. It creates the space down the right side of the page. */
	background-color:#7480E9;
/*	background-image:url('http://luca.merciadri.free.fr/ventepc/NEW/_img/_bg/rotate.php'); */
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
} 
.twoColElsLtHdr #footer {
	padding: 0 10px;
	background-color: #FC7E01;
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
} 
.twoColElsLtHdr #footer p {
	margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
	padding: 10px 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
	font-size: small;
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
 
/* Miscellaneous classes for reuse */
.fltrt { /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
	float: right;
	margin-left: 8px;
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
.fltlft { /* this class can be used to float an element left in your page */
	float: left;
	margin-right: 8px;
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
.clearfloat { /* this class should be placed on a div or break element and should be the final element before the close of a container that should fully contain a float */
	clear:both;
    height:0;
    font-size: 1px;
    line-height: 0px;
	scrollbar-base-color: #7480E9;
	scrollbar-face-color: #7480E9; /* Couleur des boutons qui contiennent la flèche */
    scrollbar-shadow-color: #228b22; /* Couleur sombre du relief des boutons et de l'ascenseur  */
    scrollbar-highlight-color: #FC7E01; /* Couleur claire du relief des boutons et de l'ascenseur  */
    scrollbar-3dlight-color: #FC7E01; /* Couleur claire du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-darkshadow-color: #000000; /* Couleur sombre du relief des boutons quand ceux-ci ne sont pas enfoncés */
    scrollbar-track-color: #7480E9; /* Couleur du fond de la barre */
    scrollbar-arrow-color: #FC7E01; /* Couleur des flèches */
}
/*Forms defaults*/
input, textarea {
	font-family:Arial, Helvetica, sans-serif;
	font-size:12px;
	color:#404040;
}
label {
	color:#999;
	cursor:pointer;
	padding-left:2px;
	line-height:15px;
	vertical-align:top;
}
label.chosen {
	color:#333;
}
 
/*Transparent items*/
.transparent {
	filter:alpha(opacity=0);
	-moz-opacity:0;
	opacity: 0;
	border:0px solid #FFF;
	background:#FFF;
	z-index:10;
	cursor:pointer;
}
.transparentFake {
	background:none;
	border:none;
}
.transparent2 {
	z-index:10;
}
 
/*Radio buttons*/
.radioAreaUnchecked, .radioAreaChecked {
	z-index:5;
	position:absolute;
	width:15px;
	height:15px;
	cursor:pointer;
}
.radioAreaUnchecked {
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/radio.gif) no-repeat left top;
}
.radioAreaChecked {
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/radio.gif) no-repeat left bottom;
}
 
/*Checkboxes*/
.checkboxAreaUnchecked, .checkboxAreaChecked {
	z-index:5;
	position:absolute;
	width:14px;
	height:14px;
	cursor:pointer;
}
.checkboxAreaUnchecked {
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/checkbox.gif) no-repeat left top;
}
.checkboxAreaChecked {
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/checkbox.gif) no-repeat left bottom;
}
 
/*Text inputs*/
.textinput, .textinputHovered {
	width:236px;
	height:15px;
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/input.gif) no-repeat left top;
	border:none;
	padding:4px 8px;
}
.textinputHovered {
	background-position:left bottom;
}
 
/*Text areas*/
.textarea, .textareaHovered {
	width:336px;
	height:125px;
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/textarea.gif) no-repeat left top;
	border:none;
	padding:4px 8px;
}
.textareaHovered {
	background-position:left bottom;
}
 
/*Selects*/
.selectArea {
	width:200px;
	height:21px;
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/select_bg.gif) repeat-x left top;
}
.selectArea .left {
	width:8px;
	height:21px;
	float:left;
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/select_left.gif) no-repeat left top;
}
.selectArea .right {
	width:21px;
	height:21px;
	float:right;
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/select_right.gif) no-repeat left top;
}
.selectArea .right a {
	display:block;
	width:21px;
	height:21px;
}
.selectArea .right i {
	display:none;
}
.selectArea .center {
	width:160px;
	margin-left:5px;
	margin-right:20px;
	color:#FFF;
	padding-top:3px;
}
 
/*Selects drop-down*/
.optionsDivInvisible, .optionsDivVisible {
	position:absolute;
	margin-top:-1px;
	margin-left:3px;
	width:172px;
	background:#6f7074;
	padding:2px;
	font-size:11px;
	z-index:20;
}
.optionsDivInvisible {
	display:none;
}
.optionsDivVisible {
	display:block;
}
.optionsDivVisible p {
	margin:0;
	padding:0;
}
.optionsDivVisible a {
	color:#F2F2F2;
	text-decoration:none;
	display:block;
	padding:1px 4px;
	border:1px solid #6f7074;
}
.optionsDivVisible a:hover {
	color:#FFF;
	background:#5F6062;
	border-color:#cfd0d6;
}
 
/*Button*/
.buttonSubmit, .buttonSubmitHovered {
	width:69px;
	height:26px;
	color:#FFF;
	font-weight:bold;
	padding:2px 5px;
	background:url(http://luca.merciadri.free.fr/ventepc/NEW/_img/button.gif) no-repeat left top;
	cursor:pointer;
	border:none;
}
.buttonSubmitHovered {
	background-position:left bottom;
}
 
/*Test div - testing if stylesheets are enabled*/
#stylesheetTest {
	position:absolute;
	left:-999px;
	width:10px;
	height:10px;
}
Prenons par exemple l'url : http://luca.merciadri.free.fr/ventepc/NEW/index.php, où l'ascenseur (à droite) n'est pas coloré (il est tout simple), alors que, à http://luca.merciadri.free.fr/ventep...formulaire.php, l'ascenseur du formulaire (pour la textarea), se voit jouir des propriétés CSS que je désire appliquer à l'ascenseur à droite de la première page.

Notez que dans le code CSS, j'ai recopié les propriétés de l'ascenseur dans toutes les classes pour être sûr de ne pas en avoir oublié une, mais ça ne change quand même rien.

Que faire ?

Merci!