Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

92
Vistas
Prevent an element hidden when it clicked

I made an element with visibility: hidden, it turn out visibility: visible when its :hover. It works perfectly on desktop view, but on mobile web it will dissappear when the element being clicked. How can I resolve this? Only set to hidden/dissapear when we click outside the element or the close button.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

:hover doesn't fire in mobiles, since mobiles are only click. (You got nothing to hover with!)

Luckily, if you use :active selector in combination with :hover you can achieve this as long as the :active is after :hover.

.element:hover, .element:active{
   visibility: visible;
 }
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda