html - How to make scrollable DIV with scrollbar outside div like on facebook? -


i has scrollable div scrollbar should on right side of browser default (but not on right side of div). i've seen on facebook (ceter div - contentarea scrolled right side browser scrollbar).

the way facebook having content doesn't scroll have position of fixed. way native browser scrollbar appear scroll center area only, while it's rest of page fixed in position.

a simple example of this:

http://jsfiddle.net/tcavn/

now imagine above, non-scrollable items setup #header.

edit

here more complex example, 3 columns:

http://jsfiddle.net/tcavn/1/


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -