Several pages on our e-commerce web app allow users to filter a status list of requests they've submitted to us.
The filters are usually something like:
All Pending Completed
We have them set up as links. We'd like to style them so that the currently active filter is highlighted with a colored rectangle (w/rounded corners, natch!) and the text becomes white.
The rectangular highlight would remain until the user clicked one of the other filters (Pending, Completed) at which point the highlight would move to the link just clicked.
An example of this shows up in several places on Facebook where, for example, wall posts are filtered into:
Dean+Friends Just Dean Just Friends
Is there a straightforward way to do this in CSS, perhaps by styling the most-recently 'visited' link but marking previously-visited ones as unvisited?
Thanks,
Dean Richardson