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

202
Views
th position sticky not working with when overflow is enabled? reactjs

I am new to react js. I am trying to freeze the header when the user scrolls on the page. I noticed that, when I remove the overflow option, header sticky position seem to be working, but when i have the overflow option, sticky doesnt work. and I do want the overflow option, without which my table container is overflowing on the page, and this is how my css code looks like: Am I missing something here? any help is greatly appreciated.

.app-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem;
  overflow-x: scroll;
}

table {
  table-layout: fixed;
  max-height: 200px;
  border-collapse: collapse;
  width: 500%;
}

th {
  position: sticky;
  top: 0;
  background: white;
  font-size: medium;
}
about 4 years ago · Juan Pablo Isaza
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!