Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

103
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda