Bonsoir,
ce que je cherche à faire semble évident et pourtant, j'y arrive pas...Bon, pas une lumière en CSS...
Code html : 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 <div id="navigation"> <ul class="menu"> <li><span class="level0">lev0</span> <ul class="menu1"> <li><span class="level1">lev1</span> <ul> <li><span class="level2">lev2</span></li> <li><span class="level2">lev2</span></li> <li><span class="level2">lev2</span></li> <li><span class="level2">lev2</span></li> </ul> </li> <li><span class="level1">lev1</span></li> <li><span class="level1">lev1</span> <ul> <li><span class="level2">lev2</span></li> <li><span class="level2">lev2</span></li> </ul> </li> </ul> </li> </ul> ....
et j'arrive pas à élargir le "lev0" (span de classe "lev0")
Code css : 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 <style> #navigation { width:790px; } #navigation .menu { float:left;width:200px; margin:0; padding:0; } #navigation ul li { list-style:none; width:100px;} .clear{ clear:left; list-style: none; } .level0 { background-color:#EAEAEA; width:100px; } .level1 { display: inline-block; width:100px; line-height:30px; padding-left:30px; background: url(http://---/green_bullet.gif) left no-repeat; } .level1:hover {background-color:#87D300; } .level2 { display: inline-block; line-height:30px; padding-left:30px; background: url(Puce_Fleche_15.jpg) left no-repeat; } </style>
Partager