Bonjour voila je veux faire un menu horizontal
mais je veux que les liens fassent comme des blocks
qu'ils aient la meme taille et qu'ils ne dépendent pas du nombre de caracteres
vous aurez vu en voyant le code que je veux qu'il fasse 120px;
je joints ce que j'ai deja fait
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 /* * Feuille de style * * @author KarKam * */ /* Barre de navigation horizontal */ #navbar { width:100%; margin:0px; padding:0px; background-color:#FFF; color:#FFF; vertical-align:top; font-family:Helvetica,Verdana,Courrier; } #navbar ul { width:100%; list-style:none; border:none; margin:0px; padding:0px; background-color:#023761; color:#FFF; } #navbar li { display:inline; width:120px; margin:0px; background-color:#023761; color:#FFF; border-right:1px solid #BBB; } #navbar li a{ /*display:block;*/ padding: 0px 5px 0px 0.5em; width:100%; background-color:#023761; color:#FFF; border-right:1px solid #BBB; text-decoration:none; } #navbar li a:hover{ width:120px; background-color:#369; color:#FFF; border-right:1px solid #99FF00; }
Partager