I am creating a web and need to make a scroller appear. I tried using overflow: auto, but then other problem appeared. Here is a simple example of my problem. I have outer div with property overflow: auto and component in angular4 (or in other words another div) that has new background color. When scroller appears and I scroll to right background color disappears. How to have scroller and background color to stay?
.outer {
width: 110px;
height: 110px;
border: thin solid black;
overflow: auto;
background: red;
}
.inner{
background:Yellow;
}
<div class="outer">
<div class="inner">
<p>
Scroll to right -> ********************************************
</p>
</div>
</div>