User:Emma/common.css: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
(Moving content.) |
No edit summary |
||
Line 1: | Line 1: | ||
#container { | |||
position: relative; | |||
overflow: hidden; | |||
width: 200px; | |||
} | |||
#scrollable_content { | |||
overflow: auto; | |||
height: 200px; | |||
padding-right: 24px; | |||
} | |||
#scrollbar { | |||
background: blue; | |||
height: 100%; | |||
width: 30px; | |||
position: absolute; | |||
right: 0px; | |||
top: 0px; | |||
} | |||
#slider { | |||
background: gray; | |||
position: absolute; | |||
top: 0px; | |||
left: 0px; | |||
width: 100%; | |||
} |
Revision as of 21:37, January 16, 2012
#container { position: relative; overflow: hidden; width: 200px; } #scrollable_content { overflow: auto; height: 200px; padding-right: 24px; } #scrollbar { background: blue; height: 100%; width: 30px; position: absolute; right: 0px; top: 0px; } #slider { background: gray; position: absolute; top: 0px; left: 0px; width: 100%; }