Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

51
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!