I have a div .div-wrapper inside position: fixed div .div-header.
Now I want to scroll this div with jQuery.
I have almost working solution below, but it is so ugly(with width: 5000%) that I can't stop myself from finding better way to do this.
Is there a way to achieve the same effect without having width: 5000%?
HTML:
<div class="div-header">
<div class="div-wrapper">
<div class="div-long">
Some wide content...
</div>
</div>
</div>
CSS:
.div-header {
position: fixed;
left: 15px;
right: 100px;
top: 20px;
}
.div-wrapper {
overflow: hidden;
height: 57px;
}
.div-long {
width: 5000%;
}
jsFiddle: http://jsfiddle.net/pyzk27xj/6/
Thanks in advance!