Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

191
Views
How can I make an effect last on an element in a nav menu (CSS)

How can I effect a pressed on element until I press on another element ?

exmple:

HTML:

 <nav>
  <a href="#"> ex1 </a>
  <a href="#"> ex2 </a>  
  <a href="#"> ex3 </a>
 </nav>

CSS:

 a:active {
 background-color: darkblue;
 }

I once did before but now I forgot how.. Is it by the pseudo class :active or is this pseudo class effect ends when releasing the mouse click?

How can I make it last until I click on another element in the nav menu ?

Thank You...

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!