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

104
Views
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 answers
Answer question

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 Report

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 Report

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