I have two divs in my angular project. I want the two divs to have independent scroll bars.
The divs are constructed like this.
<div ng-show="$state.includes('base.videolist')||$state.includes('base.movielist')">
<ul class="nav navbar-fixed-top roboto nav-tabs">
<li ui-sref="base.videolist" ui-sref-active="active"><a>Videos</a></li>
<li ui-sref="base.movielist" ui-sref-active="active"><a>Movies</a></li>
</ul>
</div>
<div id="bvl" class="scrol_sctn" ui-view="videolist" ng-init="pullFingerprintData()" ng-show="$state.includes('base.videolist')"></div>
<div id="bml" class="scrol_sctn" ui-view="movielist" ng-show="$state.includes('base.movielist')"></div>
<div id="vpl" class="cdnfullscreen" ui-view="videoplayer" ng-show="$state.includes('base.videoplayer')"></div>
I want the divs bvl and bml to have independent scrolls. This is my css file.
body {
background:#a5c8f3 !important;
font-family: 'Raleway', sans-serif;
padding-top: 50px;
overflow: hidden;
}
.scrol_sctn {
margin:0;
padding:0;
overflow-y: auto;
overflow-x: hidden;
}
I hid the scroller for the body tag so that I can have independent tags for the bml and bvl tags. But doing this stops the entire page from using scrolls. Any help to achieve this is much appreciated.
overflow-y: scrollinto each particular div you will be able to do what you want.