I can't seem to figure out, how I could hide the scrollbar on an element which has the position: fixed property set. I need a fixed side-menu with a fixed height in my app and the rest of the content should be scrollable. I already tried to wrap it in another div and set the overflow property of the parent to hidden, but it doesn't seem to work for fixed elements. Any suggestions will be greatly appreciated. Here is the snipet:
<!DOCTYPE html>
<html>
<head>
<title>Blabla</title>
</head>
<body>
<style>
.blabla {
position: fixed;
height: 150px;
width: 200px;
background: red;
/*overflow-y: hidden;*/
}
.blabla2 {
font-size: 20px;
text-align: center;
height: 149px;
overflow-y: scroll;
}
</style>
<div class="blabla">
<div class="blabla2">
blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>
blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>
blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>
blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>
blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>blabla<br>
</div>
</div>
</body>
</html>