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

271
Vistas
Flexbox items overlap when resizing window

I'm creating a landing page with 3 sections (I haven't coded the 3rd section yet).

Each section must occupy 100% of the screen.

The top 2 sections have 2 columns each.

I'm using Flexbox for this, and everything looks great as long as the browser is full screen and the sections have no content. When I start adding content inside the sections, then resize the window, the sections start to overlap, especially when resizing only vertically.

When resizing horizontally there is no problem as I can change flex-direction:column; to flex-direction:row; for them to stack.

How can I get a 100% view of the section while making everything responsive when the window is resized and avoid overlapping?

Would CSS Grid be a better option here?

Here is a Code Pen. Slide the code panel up, then resize your window, and you'll notice how the second section overlaps the first section's button, text, and image. Code Pen: https://codepen.io/MarwanAK10/pen/eYedLoZ

If you try to remove the button, paragraph and image from the html, the problem will go away and when you resize the sections won't overlap...

Thanks!

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

You can use @media queries for screens of different sizes. So you can display everything differently depending on the size of the screen. You can see the documentation here

over 4 years ago · Santiago Trujillo 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