Skip to content

Instantly share code, notes, and snippets.

@reneras
Created August 27, 2012 13:28
Show Gist options
  • Save reneras/3488401 to your computer and use it in GitHub Desktop.
Save reneras/3488401 to your computer and use it in GitHub Desktop.
RHide scrollbar in firefox
<div id="wrapper">
<div id="scroller">
<div id="content">
foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>
foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>
foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>foo<br>bar<br>baz<br>
</div>
</div>
</div>​
<--!
/* http://jsfiddle.net/2wWph/ */
#wrapper {
width: 150px;
overflow: hidden;
outline: 1px solid blue;
}
#scroller {
width: 270px;
height: 100px;
overflow: auto;
position: fixed;
}
#content {
width: 146px;
border-left: 2px solid red;
border-right: 2px solid red;
background: yellow;
}
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment