2 problemes pour faire un menu en CSS
Salut a tous.
J'ai fait mon premier menu en CSS cependant j'ai 2 problemes:
Le premier est que je n'arrive pas a faire changer l'image de fond avec la fonction hover. (je veut faire un rollover)
Voici mon code:
Code:
1 2 3 4 5 6 7 8 9 10 11
|
</div>
<div class="menu">
<ul id="menuid1"><a href="http://manganime.0.free.fr/index.php"></a></ul>
<ul id="menuid2"></ul>
<ul id="menuid3"></ul>
<ul id="menuid4"></ul>
<ul id="menuid5"></ul>
<ul id="menuid6"></ul>
<ul id="menuid7"></ul>
</div> |
Voila pour la page principal, maintenant la feuille de style:
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
|
ul#menuid1
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/accueil.jpg);
float:left;
}
ul#menuid1 a:hover
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/accueilon.jpg);
}
ul#menuid2
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/planning.jpg);
float:left;
}
ul#menuid2 a:hover
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/planningon.jpg);
}
ul#menuid3
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/critiques.jpg);
float:left;
}
ul#menuid3 a:hover
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/critiqueson.jpg);
}
ul#menuid4
{
width: 115px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/articles.jpg);
float:left;
}
ul#menuid4 a:hover
{
width: 115px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/articleson.jpg);
}
ul#menuid5
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/membres.jpg);
float:left;
}
ul#menuid5 a:hover
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/membreson.jpg);
}
ul#menuid6
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/forum.jpg);
float:left;
}
ul#menuid6 a:hover
{
width: 114px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/forumon.jpg);
}
ul#menuid7
{
width: 115px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/liens.jpg);
float:left;
}
ul#menuid7 a:hover
{
width: 115px;
height:25px;
list-style-type: none;
margin: 0;
padding: 0;
border: 0;
background-image: url(../imagesite/lienson.jpg);
} |
Donc je ne vois pas ou est le probleme.
Deuxiement, comment faire pour que mes "zone" <div> puisse devenir des liens?