javascript - Scroll Div inside Absolute positioned parent -
im trying allow inner div in html allow scrolling. i'm not sure preventing scrolling.
here's html:
<div class ="item item-text-wrap" ng-class="{show: showingdata, more: moreinfo}"> <div> <!-- stuff don't want have scroll --> </div> <div class="scrollable"> <!-- scrollable stuff here --> </div> </div>
and here's css:
.item.item-text-wrap{ z-index: 10; position: absolute; bottom: 0px; width:101%; max-height: 25px; color:rgba(255, 255, 255, 1); background-color: rgba(50, 50, 50, 0.75); border: 0; overflow: hidden; -webkit-transition: max-height .1s; transition: max-height .1s; } .item.item-text-wrap.show{ max-height: 180px; height: 500px; } .scrollable{ height: 1000px; position: relative; margin-bottom: 20px !important; overflow-y: scroll; }
note: in past i've given class .item.item-text-wrap height value, although has again not proved fruitful.
any , appreciated!
no css expert here, think trick in max-height
of parent div , height
of inner div.
Comments
Post a Comment