How can I make an unordered list scrollable without making the whole window scrollable?
Dani L.
answered 09/04/19
Graphic designer & Web Developer
Use the overflow declaration on your div:
HTML:
<div class="wrapper">
<UL>
<li></li>
<li></li>
<li></li>
</UL>
</div>
CSS:
.wrapper{ height: Specific PX declaration; overflow:scroll;}
Here is a Code Pen to a full example: https://codepen.io/dani-mavis/pen/pozdZjZ
Still looking for help? Get the right answer, fast.
OR
Find an Online Tutor Now
Choose an expert and meet online.
No packages or subscriptions, pay only for the time you need.