Check out the code snippet below as a reference:
<div class="main">
<div class="header">
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
Header<br>
</div>
<div class="footer">
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
Footer<br>
</div>
</div>
css:
.header{
overflow: hidden;
}
.footer{
overflow-y: scroll;
}
.main{
overflow-y:hidden;
}
JSFiddle I have encountered a scenario where the size of my parent div is unknown, it is written in an iframe and I am inserting an angular template into the iframe. I have managed to fix the header, but I'm having trouble making it scrollable. To make it scrollable, I would need to provide a fixed height for the div, which is not possible due to...