I need assistance with my code on both Chrome and Mozilla browsers. The layout looks perfect in Chrome, but in Mozilla, the scrollbar is affecting the positioning of my list elements.
Could someone please help me figure out how to make it consistent across both browsers?
Here is the link to the jsfiddle: http://jsfiddle.net/NR9TS/2/
CSS:
ul {
width:164px;
float:left;
overflow-y: scroll;
overflow-x: hidden;
max-height:100px;
list-style:none;
margin:0px;
}
li {
width:80px;
height:80px;
background-color:red;
border:1px solid blue;
margin:0px;
float:left;
}
HTML:
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
Thank you in advance.
Chrome View:
Firefox View: