Log in

View Full Version : How to display the tab that I'm currently on



nestman
03-25-2011, 06:03 PM
Here is my test page:

http://www.oil-testimonials.com/CSSmenu/#

I found this CSS menu example online and have implemented it but I have a question. How does the CSS know which tab to activate? Currently it shows, "My Stuff" as being selected. But how does it know the select the Contact tab when its clicked on?

Thank you!!

Shadow X
03-25-2011, 06:11 PM
Hello,

I encountered a similar code as yours when I am learning CSS to make my layout. In your code, try putting <a href="#" id="current"> to the one you want to show on your nav tab.

Example:
If you want My Stuff to have the purple thing,
<a href="#" id="current">My Stuff</a>

If you want Search to have the purple thing,
<a href="#" id="current">Search</a>

Give it a try. I just learned CSS yesterday so hopefully this helps. :)