The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to solving : CSS selector “:active” not working ? Re: How to solving : CSS selector “:active” not working ?


JuanLie, you really need to better explain the problem and give some code or link.

I’ll take a guess and assume you think that the active psuedo class should work for navigation when on a certain page – it doesn’t. Active is when the link or element is actually being selected, like when you’re mouse clicking on a link.

If this is true, then simply use php to add an active class to the link or div in question