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

436
Views
How to change color in a button on click in CSS?
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

In CSS you have selectors called pseudo-classes.

Among which you can find:

  • :hover which is activated when the mouse goes over, but a click is not required.

  • :active which is activated when the mouse is doing the click action

  • :visited which fires if the element was clicked at least once

Example:

<button id=miBoton>Mi Botón</button>

 #miBoton { padding: 30px; background: light-gray; color: black; } #miBoton:hover { padding: 30px; background: blue; color: white; } #miBoton:active { padding: 30px; background: gray; color: white; }

over 4 years ago · Santiago Trujillo Report
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!