Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

137
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda