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

136
Vistas
How to pin down html footer if there isn't enough content without JavaScript?

I have made a small web page for my university project. But after some testing i noticed that if there isn't enough content in the <main> section of <body> then <footer> will appear after the end of content despite there being some empty space down bellow. I tried to fix this using css properties bottom: 0; margin-top: auto. But it had no effect at all. After inspecting some popular web sites i discovered that a lot of them definitely used JavaScript to place some sort of adjustable margin if there wasn't enough content. Is it even possible to do that without using JavaScript?

about 4 years ago · Juan Pablo Isaza
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