6 replies [Last post]
Starzy
Offline
newbie
Last seen: 16 years 21 weeks ago
Joined: 2004-12-15
Posts: 1
Points: 0

I have two different sets of links in my styles both with different IDs. Ones for the top nav and ones for the sub nav on the side. Both are using a.current but the current state on the top nav is not working in explorer but the current state on the sub nav works just fine in explorer. In firefox both the top nav and the sub nav current state works great. Why is one current state not showing in explorer? Please help.

TOP NAV STYLE:
#menu-bg a:link, #menu-bg a:visited{
float: left;
display: block;
color: #FFF;
text-decoration: none;
padding: 0px;

}

#menu-bg a:hover, #menu-bg a:active{
color: #F8F8C2;
text-decoration: none;

}
#menu-bg a.current{
color: #F8F8C2;
text-decoration: none;
}

SUB NAV STYLE:
a.menulist{
display: block;
color: #7C0C24;
width: 12em;
padding: 0px 0px 0px 0px;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
margin: 0;
}

a.menulist:hover{
display: block;
color: #333333;
width: 12em;
padding: 0px 0px 0px 0px;
text-decoration: none;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
margin: 0;
}

a.menulist:current{
color: #333333;
text-decoration: none;

}

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 5 years 14 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

a.current

Possibly because the top one has been declared as #menu-bg a.current{ when it should be #menu-bg a:current{?

Although why it'd work if FF and not IE, I'm unsure...

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 41 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

a.current

Unless I'm missing something here, 'current' is not a pseudo-class! ...I think we need to see your mark-up Starzy. Can you post a link?

Life's a b*tch and then you die!

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 5 years 14 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

a.current

roytheboy wrote:
Unless I'm missing something here, 'current' is not a pseudo-class!

Er, yes, that's what I meant to say. :oops:

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

karinne
karinne's picture
Offline
Enthusiast
Aylmer, QC, Canada
Last seen: 13 years 47 weeks ago
Aylmer, QC, Canada
Timezone: GMT-5
Joined: 2004-01-14
Posts: 291
Points: 0

a.current

a.menulist:current{
color: #333333;
text-decoration: none;

}

does not exist

it's a:link, a:visited, a:hover or a:active ... there is no a:current :?

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 41 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

a.current

karinne wrote:
a.menulist:current...does not exist

That's what I said :? :? :?

Life's a b*tch and then you die!

karinne
karinne's picture
Offline
Enthusiast
Aylmer, QC, Canada
Last seen: 13 years 47 weeks ago
Aylmer, QC, Canada
Timezone: GMT-5
Joined: 2004-01-14
Posts: 291
Points: 0

a.current

roytheboy wrote:
karinne wrote:
a.menulist:current...does not exist

That's what I said :? :? :?

ooooops :oops: hehe... don't mind me