Précédent   Forum du club des développeurs et IT Pro > Webmasters - Développement Web > CSS
CSS Forum d'entraide sur l'utilisation des feuilles de style CSS. Avant de poster : Cours CSS, FAQ CSS, Galerie CSS
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse
 
Outils de la discussion
Publicité
'
Vieux 20/11/2012, 19h03   #1
ickyknox
Débutant
 
Inscription : février 2007
Messages : 303
Détails du profil
Informations forums :
Inscription : février 2007
Messages : 303
Points : 54
Points : 54
Par défaut Texte devient blanc sur hover

bonjour,

je n'arrive pas à afficher du texte blanc au passage de la souris sur mon menu. Le texte reste noir

http://plenitude-beaute06.com/dannaprod/

La balise est

Code :
1
2
3
4
5
<ul id="nav">
			<?php $plxShow->staticList($plxShow->getLang('HOME'),'<li id="#static_id"><a href="#static_url" class="#static_status" title="#static_name">#static_name</a></li>'); ?>
			<?php $plxShow->pageBlog('<li id="#page_id"><a class="#page_status" href="#page_url" title="#page_name">#page_name</a></li>'); ?>
 
		</ul>

Voici mon code

Code :
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
@charset "UTF-8";
 
 
/* 1 - Reset [ based on E.Meyer work ] */
 
html, body, div, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, span, blockquote, label, input, textarea, form, fieldset{
	border: 0;
	font: inherit;
	font-size: 10article0%;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
}
 
input{
	vertical-align: middle;
	}
 
textarea{
	width: 100%;
	max-width: 100%!important;
	}
 
img {
	border: none;
}
 
/* 2 - Basic Styles */
 
body {
	font-family: Arial, Helvetica, sans-serif;
	}
 
h1, h2, h3, h4, h5, h6{
	font-family: Arial, Helvetica, sans-serif;
	}
 
h1 {font-size: 1.75em;}
h2 {font-size: 1.25em;}
h3 {font-size: 1.1em;}
h4 {font-size: 1em;}
h5 {font-size: 0.9em;}
h6 {font-size: 0.75em;}
 
a:link {
	text-decoration: none;
	color:black;
}
 
a:visited {
	text-decoration: none;
		color:black;
 
}
 
a:hover{
	text-decoration: none;
 
	}
 
a:active, a:hover, a.active, .active a{
	text-decoration: none;
}
 
/* 3 - Global */
#top{
	background: url('img/fond.jpg');
	background-repeat:repeat-y;
		background-color:black;
 
	}
 
#header, #section, #footer{
	margin: 0 auto;
	width: 1200px;
 
	}
 
#section{
background: transparent;
	border-top: none;
	border-bottom: none;
	margin: 0;
	padding: 20px 0 0 0;
	background:rgba(255, 255, 255, 0.8);
				   border-color	: rgba(255, 255, 255, 0.8);
		   border-width: 2px;
		   border-style: solid;
		   border-radius: 5ex;
 
		   	margin: 0 auto;
	}
 
 
#section:after{
	content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
    }
 
#article{
	float: left;
	padding: 10px 0;
	width: 610px;
	}
 
#article > h2{
	line-height: 1.5;
	}
 
.art-topinfos, .art-infos, .feed-art-com, .feed-arts {
	font-size: 0.75em;
	color:#526068;
	}
.art-topinfos a, .art-infos a, .feed-art-com a, .feed-arts a {
	color:#526068;
	}
.art-topinfos a:hover, .art-infos a:hover, .feed-art-com a:hover, .feed-arts a:hover {
	text-decoration: underline;
	}
 
.art-chapo{
	margin: 10px 0;
	}
 
.art-infos{
	background: url('img/border.jpg') repeat-x bottom;
	margin: 0 0 10px 0;
	padding: 0 0 20px 0;
	}
 
#article > h2, #article h2 + p, .art-topinfos, .art-chapo, .art-content, #footer p, .art-infos, .feed-art-com, .feed-arts, .static-content, .error-content{
	padding-left: 20px;
	padding-right: 20px;
	}
 
.author-infos{
	background: #ffffff url('img/border.jpg') repeat-x bottom;
	margin: 0 20px;
	padding: 10px;
	}
 
.more{
	font-size: 0.9em;
	margin: 20px 0 0 0;
	}
 
#article ul, #article ol{
	margin: 0 0 0 20px;
	}
 
/** 3-1 - Header **/
 
 
 
#header{
		text-align:center;
 
	}
 
#header logo{
	padding-top:5px;
	padding-bottom:5px;
	margin-bottom:10px;
	text-align:center;
	}
 
 
 
 
 
 
#nav{
	text-align:center;
	padding: 17px 20px;
 
	display: block;
    border-radius: 0.55ex;
border-bottom-color:white;
border-bottom-width:200px;
	border-top-color:white;
	border-bottom-style:solid;
	border-top-style:solid;
	border-width:1px;
		}
 
#nav li{
	display: inline;
	margin: 0 40px 0 0;
	padding: 13px 40px;
	background-color:transparent;
	text-transform : capitalize;
	color:green;
 
border-radius: 1ex;
	border: 1px solid #C2C1C1;
	    text-decoration: none;
    font-variant: small-caps;
    -webkit-transition: all 0.8s ease-in-out;
    -moz-transition: all 0.8s ease-in-out;
    -o-transition: all 0.8s ease-in-out;
    -ms-transition: all 0.8s ease-in-out;
    -khtml-transition: all 0.8s ease-in-out;
    transition: all 0.8s ease-in-out;
 
background-color: white;		}
 
 
#nav li:hover{
    background-color: #333333;
		border: 1px solid transparent;
			    color: white;
		}
 
 
 
 
 
/** 3-2 - aside **/
 
#aside{
	float: right;
	padding: 10px 20px 0 20px;
	width: 245px;
	}
 
#aside h3{
	line-height: 1.5;
	}
 
#aside ul{
	margin: 0 0 10px 0;
	list-style-type: none;
	}
 
/** 3-3 - Footer **/
 
#footer{
	margin-bottom: 30px;
	padding: 10px 0;
	font-size: 0.7em;
	}
 
#footer span{
	float: right;
	font-size: 0.9em;
	}
 
/* 4 - Comments & Forms */
 
#comments{
	background: url('img/border.jpg') repeat-x bottom;
	}
 
#comments h2{
	margin: 15px 0 0 0;
	padding-left: 20px;
	padding-right: 20px;
	}
 
form{
	margin: 0 20px;
	padding: 0 0 10px 0;
	}
 
#form h2{
	line-height: 1;
	padding: 5px 0 10px 20px;
	}
 
blockquote{
	margin: 15px 20px 20px 20px;
	}
 
.num-com{
	float: right;
	font-size: 0.8em;
	}
 
.info_comment {
	font-size: 0.8em;
	}
 
.content_com {
	padding: 15px 15px 15px 15px;
	}
 
.type-normal {
	background-color: #ffffff;
	}
 
.type-admin {
	background-color: #ebf1f4;
	}
 
.feed-art-com{
	margin: 0 0 10px 0;
	padding: 0 20px 15px 20px;
	}
 
.com-alert{
	color: #730E20;
	font-weight: bold;
	text-align: center;
	}
 
label{
	display: block;
	margin: 0 0 5px 0;
	}
 
input[type=text], textarea{
	border: 1px solid #DDDDDD;
	margin: 0 0 10px 0;
	}
 
input[type=text]:hover, textarea:hover{
	border: 1px solid #AAAAAA;
	cursor: pointer;
	}
 
input[type=text]:focus, textarea:focus{
	border: 1px solid #777777;
	}
 
input[type=submit], input[type=submit] + p{
	display: inline;
	}
 
input[type=submit] + p{
	margin: 0 0 -5px 10px;
	}
 
input[type=submit]{
	background-color: #EEEEEE;
	border: 1px solid #CCCCCC;
	padding: 3px 4px;
	}
 
input[type=submit]:hover{
	background-color: #152F40;
	color: #FFFFFF;
	cursor: pointer;
	}
 
input[type=submit]:active{
	background-color: #730E20;
	}
 
/** 5 - Pagination **/
 
#pagination{
	text-align:center;
	padding: 0 0 5px 0;
	font-size: 0.8em;
	margin: 20px 0 5px 20px;
	}
 
#pagination span{
	margin-right:5px;
	}
 
#pagination .p_page{
	border: 1px #DDDDDD solid;
	padding: 3px 5px;
	}
 
#pagination .p_prev a, #pagination .p_first a, #pagination .p_last a, #pagination .p_next a{
	border: 1px #DDDDDD solid;
	padding: 3px 5px;
	}
 
#pagination span a:hover{
	background-color: #152F40;
	color: #FFFFFF;
	cursor: pointer;
	}
 
#pagination span a:active{
	background-color: #730E20;
	}

auriez vous une petite idée s'il vous plait ?

Je vous remercie d'avance
ickyknox est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/11/2012, 19h32   #2
jreaux62
Rédacteur
 
Avatar de jreaux62
 
Homme Jérôme Réaux
Webdesigner
Inscription : août 2008
Messages : 3 648
Détails du profil
Informations personnelles :
Nom : Homme Jérôme Réaux
Âge : 46
Localisation : France, Pas de Calais (Nord Pas de Calais)

Informations professionnelles :
Activité : Webdesigner
Secteur : Arts - Culture

Informations forums :
Inscription : août 2008
Messages : 3 648
Points : 7 527
Points : 7 527
Envoyer un message via Skype™ à jreaux62
Bonjour,
Code css :
1
2
3
4
5
6
7
#nav li:hover{
    background-color: #333333;
    border: 1px solid transparent;
}
#nav li:hover a{
    color: white;
}
__________________
"Ce qui se conçoit bien s'énonce clairement - Et les mots pour le dire arrivent aisément."
Nicolas Boileau-Despréaux, Homme de lettres français (1636-1711), principal théoricien de l'esthétique classique.
"Quand le sage montre la lune, le sot regarde le doigt."
Confucius, Homme d'Etat et philosophe chinois (551-479 av. J.-C).
Site perso Mes tutos DVP
Gestion-Affichage de Nouvelles Affichage en tableau HTML Fonctions de redimensionnement d'images
jreaux62 est actuellement connecté   Envoyer un message privé Réponse avec citation 00
Vieux 20/11/2012, 20h38   #3
ickyknox
Débutant
 
Inscription : février 2007
Messages : 303
Détails du profil
Informations forums :
Inscription : février 2007
Messages : 303
Points : 54
Points : 54
parfait merci beaucoup ! ca fonctionne très bien
ickyknox est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Cette discussion est résolue.
Outils de la discussion

Navigation rapide


Fuseau horaire GMT +2. Il est actuellement 16h37.


 
 
 
 
Partenaires

Hébergement Web