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

162
Views
Can I hide or limit the items number of children shown in parent container?

I'm working on a container that dynamically loads the tabs and items with API requests. I would like to lessen the number of tabs that display with it's being viewed on mobile or tablets. can I do this with media queries? CODEPEN

<div id="catTabs" class="tab"><button class="tabTest" value="Moonwalks and Bounce Houses">Moonwalks and Bounce Houses</button><button value="Water Slides">Water Slides</button><button value="Obstacle Courses">Obstacle Courses</button><button value="Tents Tables and Chairs">Tents Tables and Chairs</button><button value="Carnival Games">Carnival Games</button><button value="Concession and Catering">Concession and Catering</button><button value="Concession Supplies">Concession Supplies</button><button value="Advertising and Promotion">Advertising and Promotion</button></div>

.tab {
    display: flex;
    overflow: hidden;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    background-color: #efefef;
    padding: 0px;
    margin: auto;
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need media inquiries

https://developer.mozilla.org/zh-CN/docs/Web/CSS/Media_Queries/Using_media_queries

@media (min-width: 768) and (max-width:1024px){
 // css
  .tab{

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