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

94
Visualizações
Trigger two divs while hovering over one

I have two divs like so and they are placed in the footer of my website :

divs in question

And here is my code :

.upNextCard{
  /* Rectangle 68 */

  position: absolute;
  width: 214.29px;
  height: 255.69px;
  margin-left:300px;
  margin-top:139px;
  background-color:#E0B21C;
  transform: rotate(-12.08deg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: 0.5s;
  pointer-events: visible;

}

.upNextCard:hover {
  margin-top: 120px;
}

.upNextBanner{
  /* Rectangle 69 */
  position: absolute;
  width: 65.31px;
  height: 47.17px;
  background: #FE9C9C;
  transform: rotate(-12.45deg);
  margin-left: 400px;
  margin-top: 98px;
  pointer-events: visible;

}

Is there a way I can trigger both by hovering over the big box?

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

0

Yes, just chain them for a hover on the big box.

.bigbox:hover .upNextBanner{ Etc.... }

.bigbox:hover .upNextCard{ .... }

about 4 years ago · Juan Pablo Isaza Relatório

0

It would be easier if you post you html code to see the relation amongst divs

look at this https://www.w3schools.com/css/css_combinators.asp

it may help you

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