Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

140
Visualizações
Highlight an element when hovering on another?

I'd like to add this to my first web page.
Similar to what Chrome does in web inspector : Hovering and/or clicking an element highlights/selects a corresponding element. I realized my page revolves around this and I can't advance without it. Any constructive advice would be appreciated! Thank you!

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

You will need to know the position of the element you want to highlight relative to the position of the element to be hovered.

Take a look at this post:

How to affect other elements when one element is hovered

Once you know the position and have used the proper selector use:

background-color : lightblue;
about 4 years ago · Juan Pablo Isaza Relatório

0

I guess you are asking about :hover in css, but without code it is difficult to get idea. Check below code:

.btn {
  background-color: #f4511e;
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  opacity: 0.6;
  transition: 0.3s;
}

.btn:hover {opacity: 1}
<button class="btn">Hover Over Me</button>

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda