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

172
Visualizações
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 Respostas
Responde à pergunta

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 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