Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

568
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!