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

170
Views
How can I scroll only on a part on PC view?

I want to make the same scroll function with this website(https://salanaru.jp/).

On this website, we can scroll only the right side contents. even if you try to scroll the other parts, the right side contents scroll.

I checked developper tool, but I couldn't find any code that is controlling the scroll function.

How can I find the code or fix this problem?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Use position: fixed on the left container and set a width (x). Use padding-left: x on the right container.

body {
 background-color: blue;
}

.left {
  background-color: red;
  bottom: 0;
  left: 0;
  position: fixed;
  top: 0;
  width: 70vw;
}

.right {
  padding-left: 70vw;
}
<div class="left">Fixed Content</div>
<div class="right">
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
  <p>Scrolly Content</p>
</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!