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

124
Views
Scaling children when parent container can't contain more

I have a page which is supposed to be non-interactive. It's just a screen you can show during a teams meeting, and then you don't touch it after than.

Basically I have a parent container, which just has width: 100vw and height: 100vh. So it just takes up the entire browser window. Then stuff/children is added to this parent. Each child takes up some space, but at some point, there might be too many children, and they begin to expand the parent div - i.e. making the parent not fit the screen anymore. If this was an interactive page, I could just add overflow-y: auto, and I would be able to scroll inside the container. But again, I am not going to touch this screen.

Therefore I was looking for some kind of solution, so that when the parent had no more space, the children just scaled (or something similar), so they could fit. I know, at some point, if there were a million children, each children would be so tiny. But that doesn't really matter :)

So yeah, are there any way to do this, or do I have to think about something else ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You could use relative sizing (em, rem, %, vh, vw) instead of px. I believe this would work. For example, you have 20 child elements, their width is 100% (whole parent element) and their height is 5% each.

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!