Bonjour à tous,
Déjà bonne année
Voilà mon problème, j'ai créé un menu de type onglet en html/css. Sur certains navigateurs (IE, Opera) et certaines versions de Firefox, lorsque je suis sur un onglet, il devrait se colorer en fond vert/ écriture blanche, or il reste normal (fond transparent / écriture bleu).
Pourriez-vous m'aider ?
Voici le code html / css :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <div id="nav"> <div id="tabnav"> <ul> <li ><a href="index.php">Accueil</a></li> <li ><a href="midi.php">Midi</a></li> <li class="current"><a href="soir.php">Soir</a></li> <li ><a href="contact.php">Contact</a></li> </ul> </div> </div>Merci d'avance pour votre aide.
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 #nav { width : 476px; height : 38px; float : right; margin-top : -25px; margin-right : 4px; } #tabnav { background: transparent; width : 480px; height : 38px; } #tabnav li { display : inline; height : 308px; list-style-type: none; } #tabnav a:link, #tabnav a:visited { font-family : vivaldi; font-size: 26px; font-weight : bold; text-decoration: none; margin-right : 25px; height : 28px; color: #67A0E5; padding-left : 5px; padding-right : 5px; } #tabnav li.current a:link, #tabnav a:hover{ font-size: 26px; color: #FFFFFF; height : 25px; margin-right : 25px; background : #4C834A; padding-left : 5px; padding-right : 5px; }
Philou El Geek.
Partager