SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Threaded View

  1. #1
    SitePoint Addict
    Join Date
    Oct 2006
    Posts
    216
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    css change color background after click

    I have a sidebar with links. If one of the links is clicked and they stay in that section, then I want the background color to stay yellow. If they click on another link, then new link background becomes yellow, but old link goes back to colorless state.

    Sidebar nav is different for each section in webapp. Links in the sidebar differs and links maybe created dynamically from different section of webapps?

    Is this only possible if you know the links before hand, so you can define in id CSS ?

    any idea?

    I need something like gmail, chat is highlighted with blue background:
    Attached Images Attached Images
    Last edited by johnCash; Oct 8, 2007 at 04:38. Reason: Add gmail pic


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
  •