twistedsoul
Nov 5th, 2009, 12:51 PM
I've never actually done this before, but I have a css menu but I want to make it so when I'm on a certian page it stays highlighted. I'm using a php include for my pages so i was wondering if their is a way to do this?
here's the css
a.nav, a.nav:link, a.nav:visited {
display:block;
width:90px;
height:84px;
text-align:center;
text-decoration:none;
font-family:verdana, arial, sans-serif;
font-size:14px;
color:#FFFFFF;
line-height:90px;
overflow:hidden;
float:right;
font-weight: 300;
}
a.nav:hover {
color:#FFFFFF;
background-image:url(../images/nav.gif)
}
a.nav:active {
color:#fff;
background:#c00;
}
I tried using :focus but it had no effect.
here's the css
a.nav, a.nav:link, a.nav:visited {
display:block;
width:90px;
height:84px;
text-align:center;
text-decoration:none;
font-family:verdana, arial, sans-serif;
font-size:14px;
color:#FFFFFF;
line-height:90px;
overflow:hidden;
float:right;
font-weight: 300;
}
a.nav:hover {
color:#FFFFFF;
background-image:url(../images/nav.gif)
}
a.nav:active {
color:#fff;
background:#c00;
}
I tried using :focus but it had no effect.