The best way that I've seen using only CSS to style a link based on where the user is, is to put the name of the page in an id on the <body> tag. With this you have a way of styling the current page's link from CSS. For instance, considering you have an 'index', 'faq' and 'contact-us' page, you add unique ids to the <body> tag of each of those pages:
<body id='index'>
<body id='faq'>
<body id='contact-us'>
Then in the style sheet, do something like this:
body#index a[href='index.htm'],
body#faq a[href='faq.html'],
body#contact-us a[href='contact.html'] {
font-weight: bold;
}
The preceding selects the anchor tag based on the value of the href attribute. Unfortunately IE does not support attribute selectors. Alternatively you could give each anchor tag a unique id as well for IE compatibility.
body#index a#nav-index,
body#faq a#nav-faq,
body#contact-us a#nav-contact-us {
font-weight: bold;
}
I appended the 'nav-' prefex on those id names because every id name must be unique.
HTH!
Regards,
Rich
--
[
http://www.smilingsouls.net]
[
http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail