My code is like this.
some text here
CSS:
If in case, you want to make the .inner
element as a fixed positioned element and leave the other things inside .outer
to be "scrollable", I suggest you to set the .inner
position as an absolute positioned element. Then, create a new wrapper after it with overflow:auto
:
Some text here...
content
Here's a demo: http://jsfiddle.net/tovic/ZLbqn/3/