Log In · Register

 
current page style...?
Maccabee
post Jul 20 2009, 09:37 AM
Post #1


Senior Member
*******

Group: Official Designer
Posts: 5,880
Joined: Nov 2007
Member No: 593,382



I have seen on some sites, when you click on a nav link when you go the page, that link stays, highlighted or something signifying that you are still on that page. How do you do that? I thought you just used "a:active"? But im trying it out and it isnt working.
 
 
Start new topic
Replies
synapse
post Jul 20 2009, 01:12 PM
Post #2


Live long and prosper.
********

Group: Staff Alumni
Posts: 10,142
Joined: Apr 2007
Member No: 514,926



if you are using a list for links, try #(ID) a:active in your html/xhtml markup.

example:
CODE
<ul id="navigation">
  <li><a href="#">Link 1</a></li>
  <li><a href="#">Link 2</a></li>
  <li><a href="#">Link 3</a></li>
</ul>

CODE
#navigation { color:#ff0000; }
#navigation a:active{ color:#ff00ff; }
 

Posts in this topic


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: