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

54
Vistas
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 Respuestas
Responde la pregunta

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 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