Hallo allerseits,
ich hab eine Frage zur Anpassung der CSS Navigation oben rechts neben dem Logo auf w3Projekt.com -
Der Hover Effekt funktioniert soweit aber wie ist es realisierbar, das die jeweils aufgerufene Kategorie dann in dem Hover-Effekt dargestellt wird? Also das zB wenn ich auf Computertechnik klicke und die Kategorie dann angezeigt wird der Link dann als aktiver Link so wie bei mouseover dargestellt ist.
der Code:
CSS
#navcontainer
{
margin-left: auto;
margin-right: auto;
margin-bottom: 40px;
border-top: 0px solid #999;
z-index: 1;
width:600px;
line-height:1em;
position:absolute; top:155px !important; left:540px !important;
}
#navcontainer ul
{
list-style-type: none;
text-align: center;
margin-top: -8px;
padding: 0;
position: relative;
z-index: 2;
}
#navcontainer li
{
display: inline;
text-align: center;
margin: 0 5px;
}
#navcontainer li a
{
padding: 1px 7px;
color: #666;
background-color: #fff;
border: 1px solid #ccc;
text-decoration: none;
}
#navcontainer li a:hover
{
color: #000;
border: 1px solid #666;
border-top: 2px solid #666;
border-bottom: 2px solid #666;
}
#navcontainer li a#current
{
color: #000;
border: 1px solid #666;
border-top: 2px solid #666;
border-bottom: 2px solid #666;
}
Alles anzeigen
Vielleicht hat ja jemand einen Rat wie ich das umsetzen kann....
Danke Holger