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

105
Visualizações
how to create a big list of divs in small div?

I want to create some thing like a small feed in a small box(div)in the corner of my website, How can i do it ? how can i do this small box that can fit a lot of divs and make it scrollable?

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

0

.feed{
height:30%;
  overflow-y: scroll;
  width: 200px;
  position: fixed;
  bottom:0px;
 left:0px;
}
<!DOCTYPE html>
<html>
<title>HTML Tutorial</title>
<body>
<div class="feed">
<div>1</div>
<div>2</div>
<div>3</div>
</div>
</body>
</html>

about 4 years ago · Juan Pablo Isaza Relatório

0

The point is using overflow: scroll for big div style. It does scroll horizontally and verticaly. If you want to just scroll horizontally, use overflow-y:scroll. And if you want to just scroll verticaly , use overflow-y:scroll. So try this:

.big-div{
  height: 100px;
  overflow: scroll;
}
<div class="big-div">
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
  <div>List item</div>
</div>

about 4 years ago · Juan Pablo Isaza Relatório

0

Use overflow: scroll. You might want to hide the scrollbar as well, you can do it as follow:

.container {
  overflow: hidden;
  height: 100px;
  width: 100px;
}
.scroll-container {
  box-sizing: border-box;
  height: 100%;
  width: calc(100% + 50px);
  overflow-y: scroll;
}
<div class="container">
  <div class="scroll-container">
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
    <div> feed </div>
  </div>
</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