Results 1 to 2 of 2

Thread: How to display the tab that I'm currently on

  1. #1
    Join Date
    Mar 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to display the tab that I'm currently on

    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!!

  2. #2
    Join Date
    Mar 2011
    Posts
    8
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    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.
    Last edited by Shadow X; 03-25-2011 at 06:18 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •