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

524
Vistas
How to make React app background color have infinite height

I am trying to make the entire backgroundColor to a React application be set to black. This is proving complicated though. I have set the main App div to have a height of 100% ( and then a child component to have 100% height as well with a black background. This didn't work so then I tried setting the main App div to have a height of 100vh. This makes the full view port have a black background but the page's background is white when scrolling down. I have shared a screenshot below to show what I did. Can someone help me with this problem?

enter image description here

This is what is happening but this is not what I want. I want the whole thing to have a black background even when infinitely scrolling.

enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You should assign a background color to the body or html instead

body {
   background-color: black;
}
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