Reputation: 9252
this example code work in Google Chrome and in IE, but doesn't work in Firefox.
The scrollbar correctly appear in Chrome and IE because the div divScrollID2 is large 1200px and the container, div divScroll is large just 700px.
<html>
<body>
<div id="divScroll" style=" background:green; overflow-y:hidden;width:700px;max-width:700px;min-width:700px;overflow-x:auto;height:14px;min-height:14px;max-height:14px;">
<div style="background:pink; width:1200px;min-width:1200px;max-width:1200px;height:14px;min-height:14px;max-height:14px;" id="divScrollID2"> </div>
</div>
</body>
</html>
Can anyone explain to me why in Firefox does not appear the scroll bar in divScrollID2 and how can I fix it?
Thanks,
Tommaso
Upvotes: 1
Views: 2831
Reputation: 114367
Your height restrictions are causing the problem. There's no room for a scroll bar.
Upvotes: 4