I need help figuring out how to hide the scroll bar using overflow-y:scroll;
. I am working on a website where posts are displayed in a main area, and I want to only show the scroll bar when the content exceeds the current width.
My second question is about automatically increasing the width of the posts area when the content exceeds the current width, so the content stays within the box.
If anyone knows how to achieve this, please share your insights!
Posts area:
.content {
height: 600px;
border-left: 1px solid;
border-right: 1px solid;
border-bottom: 1px solid;
font-size: 15px;
text-align: justify;
line-height: 19px;
overflow-y:scroll;
}
Main website container:
.container {
margin: 0 auto;
width: 757px;
margin-top: 30px;
text-align: center;
}