I am facing a weird problem. I have a div like the following.
<div class="dropdown3 dropdown-style" style="overflow-y:scroll">
<ul class="dropdown-list">
<li>1k</li>
<li>5k</li>
<li>10k</li>
<li>25k</li>
<li>35k</li>
</ul>
</div>
My css is like this:
.dropdown3 {
position: absolute;
top: 30px;
background: #fff;
left: -15px;
z-index: 1;
display: none;
height:85px;
max-height:85px;
overflow:scroll;
border: 1px solid #ccc;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
Though it is working in firefox, for some reason it is not working in chrome! Chrome automatically puts style="overflow: hidden;" whereas I explicitly mentioned it to scroll in the div.