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

191
Vistas
Why is the iframe not taking up the entire page?

I'm trying to get https://vscode.dev/ to pop up and take up the entire page when I click on the icon, but instead it seems to be only taking up the top part of the page. how can i fix this?

    var div = document.getElementById("content");          
    while(div.firstChild) {
        div.removeChild(div.firstChild);
    }
    document.getElementById("vscode").height = "100%";
    document.getElementById("vscode").width = "100%";
}```
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Elements are not 100% height by default and child elements are dependent on the parent height.

So you need to set the height of the parents including html and body elements to 100% height if you want a child to be 100% height.

html, body {
 margin: 0;
 padding: 0;
 width: 100%;
 height: 100%;
}

#vscode {
 width: 100%;
 height: 100%;
 border:0
}
<iframe src="https://vscode.dev/" id="vscode"/>

Additionally, you could use 100vh

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