# I need help with scrollbar

**URL:** <https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918>\
**Category:** General\
**Created:** [June 18, 2017, 10:42pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918 "2017-06-18T22:42:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brent187](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brent187/32/98090_2.png) [@Brent187](https://forum.freecodecamp.org/u/Brent187)\
**Post date:** [June 18, 2017, 10:42pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918/1 "2017-06-18T22:42:21Z")

</div>

I’m just starting out with html and css and javascript so I probably made an easy error somewhere. I’m wanting to scroll my content within the box without it leaving the box area. my issue is I can’t figure out how to make it cut off right at the top line. Thanks for anyone willing to lend a helping hand.

 ![](https://global.discourse-cdn.com/freecodecamp/original/3X/9/0/903a47608804312ecfe0243292827f256dce5ff7.jpg)

---

<div class="post-metadata">

**Author:** ![owel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/owel/32/48425_2.png) [@owel](https://forum.freecodecamp.org/u/owel)\
**Post date:** [June 18, 2017, 10:44pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918/2 "2017-06-18T22:44:08Z")

</div>

On that content div, set overflow: auto

---

<div class="post-metadata">

**Author:** ![Brent187](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brent187/32/98090_2.png) [@Brent187](https://forum.freecodecamp.org/u/Brent187)\
**Post date:** [June 18, 2017, 10:48pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918/3 "2017-06-18T22:48:05Z")

</div>

is there a way to adjust the width and positioning of it? and hide the scrollbar that appears with it? Thanks for the reply

---

<div class="post-metadata">

**Author:** ![owel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/owel/32/48425_2.png) [@owel](https://forum.freecodecamp.org/u/owel)\
**Post date:** [June 18, 2017, 10:51pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918/4 "2017-06-18T22:51:22Z")

</div>

If you want to hide the scrollbar, set overflow: hidden

Set width and height of your div.

---

<div class="post-metadata">

**Author:** ![Brent187](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/brent187/32/98090_2.png) [@Brent187](https://forum.freecodecamp.org/u/Brent187)\
**Post date:** [June 18, 2017, 10:52pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918/5 "2017-06-18T22:52:57Z")

</div>

thanks a lot for the help =D

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:55pm UTC](https://forum.freecodecamp.org/t/i-need-help-with-scrollbar/128918/6 "2021-01-17T20:55:37Z")

</div>

Closed on January 17, 2021, 8:55pm UTC


