user578895
user578895

Reputation:

Forcing a horizontal scrollbar in IE8

I have a client that wants a scrollbar on top of their content. So I made an empty div, placed it on top of the real content, added a scroll bar and bound the scrolling of the fake div and the empty one together using javascript. This all works great in every browser... except IE8. IE8 doesn't show my scrollbar in my empty div (technically it has an   in it) no matter what I try.

demo: http://jsfiddle.net/cwolves/NShGP/

<div class="mock-scroller">
    <div class="mock-content" style="width:2000px;">&nbsp;</div>
</div>

.mock-scroller {
    position   : absolute;
    top        : 0px;
    left       : 0px;
    width      : 274px;
    height     : 20px;
    overflow-x : auto;
    overflow-y : hidden;
}

Upvotes: 0

Views: 816

Answers (1)

Matt Ball
Matt Ball

Reputation: 359786

Perhaps overflow-x : scroll;?

works on my machine

Upvotes: 1

Related Questions