Skip navigation
Currently Being Moderated

How to make a category highlighted after it clicked

Jul 17, 2012 10:36 AM

Hi there! Just want to know how to make a category highlighted after user click on it, so he will able to track on which category he is currently on?

 

I've already created 3 categories (links) through creating library elements, I already have the hover effect  I made through CSS external stylesheet, everything works, but the category is not highlighted when I browse within it.

 

Here is my HTML code of these 3 links:

 

<td bgcolor="#663300"><!-- #BeginLibraryItem "/Library/Top_links.lbi" -->

<div align="right" class="link"><a href="index.html">Home</a>     <a href="Accessories.html">Accessories</a>    <a href="Contact Us.html">Contact Us</a>    </div>

<!-- #EndLibraryItem --></td>

 

And here is my CSS code for these links:

 

.link, .link a:link, .link a:visited, .link a:active {

    font-family: "Times New Roman", Times, serif;

    font-size: 18px;

    font-weight: normal;

    color: #FFFF33;

    text-decoration: none;

    padding: 5px;

    #home: color:#00FFFF;

}


.link a:hover {

    font-family: "Times New Roman", Times, serif;

    font-size: 18px;

    font-weight: normal;

    color:#FF0000;

    text-decoration: none;

}

 

So how to make the active link highlighted when browsing within it??

Thank you

 
Replies
  • Currently Being Moderated
    Jul 17, 2012 10:43 AM   in reply to willness23

    Persistent Page Indicator on Site Wide CSS Menus

    http://alt-web.com/Articles/Persistent-Page-Indicator.shtml

     

     

    Nancy O.

    Alt-Web Design & Publishing

    Web | Graphics | Print | Media  Specialists 

    http://alt-web.com/

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 17, 2012 4:12 PM   in reply to willness23

    Anchors can have multiple classes.

     

    Follow the tutorial.

     

    <a href="page1.html" class="link home">Link 1</a>

    <a href="page2.html" class="link about">Link 2</a>

    <a href="page3.html" class="link products">Link 3</a>

     

     

    For better help, post the URL to your page.

     

    Nancy O.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points