The problem :
When hovering they all get active, insteed of one link.
I’ve tried and tried and tried and that for about a few hours but couldn’t solve.
I atleast could make hover work over li classes, which I worked my ass off trying css codes.
:injured:
If anyone could help with this appreciated it very much !
If its possible I’d like to know what I have to do to restore it and the code, so I can learn from it.
Navigation CSS
ul#navigation {
list-style-type: none;
position:relative;
float:right;
left: auto;
margin-right: -20%;
margin-top: 2%;
}
ul#navigation li {
float:right;
text-decoration:none;
position:relative;
display:inline;
width:130px;
color:#ffffff;
height:46px;
margin: 0px 0px 0px 0px;
}
ul#navigation li a {
text-align: center;
text-decoration:none;
font-family:Tahoma,Arial,Helvetica,sans-serif;
font-size:11.2px;
width: 9em;
padding:15px 0px 0px 0px;
margin:0px 0px 0px 0px;
font-weight: bold;
position:relative;
color:#ffffff;
background:url("img/navmid.png") no-repeat;
width:130px;
height:46px;
display:block;
}
ul#navigation .begin {
background:url("img/navleft.png") no-repeat;
width:130px;
height:46px;
display:block;
}
#navigation:hover .begin {
background:url("img/navleftover.png") no-repeat;
width:130px;
height:46px;
display:block;
}
#navigation:hover .end {
background:url("img/navrightover.png") no-repeat;
width:130px;
height:46px;
display:block;
}
#navigation .end {
background:url("img/navright.png") no-repeat;
width:130px;
height:46px;
display:block;
}
#navigation:hover .mid {
background:url("img/navmidover.png") no-repeat;
width:130px;
height:46px;
color:#fff;
text-decoration:none;
}
Navigation HTML
<div id="navigation">
<ul id="navigation">
<li><a href="#" class="end">Home</a></li>
<li><a href="#" class="mid">Home</a></li>
<li><a href="#" class="mid">Home</a></li>
<li><a href="index.html" class="begin">Home</a></li>
</ul>
</div>