Home › Forums › CSS › stay clicked until another link is clicked help › Re: stay clicked until another link is clicked help
January 18, 2013 at 1:48 am
#121337
pocketg99
Member
If you want to use CSS3, I would suggest that you try using the target psuedo class. If you specify the href of one of the links as the name of one of your divs following a # you can then specify style to be active only when the pages URL has the fragment of a # followed by your div’s name.
#mydiv{color:red;}
#mydiv:target{color:blue}
When you click the link in the above example, the font color should be altered until you click on another link.