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

567
Visualizações
Is there any way to make position:sticky work inside iframe based on the parent document scroll?

I am having a usecase where the <footer> inside the <iframe> should be sticky at bottom (<iframe> doesn't have a scrollbar) based on the parent document scroll.

Note: position: sticky works as expected inside <iframe> only when it has a scroll.

Please share your thoughts.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Their is not a way to do this with css of standard browser APIs. You might however find it useful to look at a library called iframe-resizer which provides an API to tell the iframe the scroll position of the parent page.

You would then need to write a little bit of JS to take this stream of position data and use it to position your div.

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