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

56
Visualizações
how to set a div made of 3 buttons that in the moment in which the broswer's window is shrunk turns into a pop-up menu

I'm writing this message as I'd need to know how to set a div made of 3 buttons that, in the moment in which the broswer's window is shrunk and it's no longer on full screen, turns into a pop-up menu visible through the conventional three lines.

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

0

You can define @media in your css.

An example has been set here: https://jsfiddle.net/jfgm9r2v/8/

The html code is like this:

<div class="hideOnSmall">
  <button>Text1</button>
  <button>Text2</button>
  <button>Text3</button>
</div>
<div class="displayOnSmall">
<div class="hamburger-box">
  <button>MyHambuger</button>
</div>

The magic happens in the css:

.hideOnSmall {
  display: block;
}

.displayOnSmall {
  display: none;
}

@media only screen and (max-width: 768px) {
  .displayOnSmall {
    display: block;
  }

  .hideOnSmall {
    display: none;
  }
}
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