Hi,
ich versuche bilder links in meine navi einzubauen, aber irgendwie klappt es nicht.
HTML-Code:
<div id="nav">
<ul>
<li class="bio">
<a title="bio" href="http://localhost/bio/"></a>
</li>
</ul>
</div>
Code:
#nav{
background:transparent;
font-size:0.9em;
margin-bottom:0;
padding:0;
width:850px;
margin-top:40px;
}
#nav ul{
list-style-type:none;
}
#nav ul li{
float:left;
}
.bio {
width:153px;
height:38px;
}
.bio a{
background:url(./images/bio1.png) no-repeat;
width:153px;
height:38px;
}
.bio a:active{
background:url(./images/bio2.png) no-repeat;
position:absolute;
}
also die links sollen nur aus den bildern bestehen und bei active soll das bild ausgewechselt werden. Leider zeigt er mir im moment garnix an.
kann mir irgendjemand bitte helfen?
ich versuche bilder links in meine navi einzubauen, aber irgendwie klappt es nicht.
HTML-Code:
<div id="nav">
<ul>
<li class="bio">
<a title="bio" href="http://localhost/bio/"></a>
</li>
</ul>
</div>
Code:
#nav{
background:transparent;
font-size:0.9em;
margin-bottom:0;
padding:0;
width:850px;
margin-top:40px;
}
#nav ul{
list-style-type:none;
}
#nav ul li{
float:left;
}
.bio {
width:153px;
height:38px;
}
.bio a{
background:url(./images/bio1.png) no-repeat;
width:153px;
height:38px;
}
.bio a:active{
background:url(./images/bio2.png) no-repeat;
position:absolute;
}
also die links sollen nur aus den bildern bestehen und bei active soll das bild ausgewechselt werden. Leider zeigt er mir im moment garnix an.
kann mir irgendjemand bitte helfen?