The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

simple text rollover question

Hi there. Long time lurker, new poster.

I'm getting to know CSS decently, but the following isn't behaving like ( I think) it should, and I'm having a hell of a time figuring out why.

The page is http://www.3fortygrill.com/indexold.php , and the problem comes when the menu bar links are visited. They're supposed to go to white background/dark red text, but the text isn't changing. Here's the CSS involved, and I can't tell what's going on. Any help would be much appreciated.

Hmm. I'll try that, but I want to figure out why some of the changes work for the menu links, and some don't. Regular a hover has maroon background and white text, but menu text is always going to be on a dark background, so I want the hover to be of white (or another light color) background, and maroon text, which is, I think, what the css is saying. But it doesn't seem to be cooperating. I'd usually just keep reconstructing it from scratch till something worked, but I'd like to figure out why it's doing this. And I'm trying to get a demo of the site up by friday.

All I'm trying to do is something like this page, where the links on lighter backgrounds are blue->orange and on the darker are white->orange

If the order is different, strange things can happen - as you're seeing. If they're in the order you've given above (link, hover, visited, active) the "visited" style will override the "hover" style if both apply - which they probably will in your case, since you're the web author, and you've probably visited all pages in the site recently...

Once all that's done, your links should be turning red-on-white when you mouse over them. I'm not sure if that's what you want, but it looks like that's what you're trying to code.