I am making a page that has three elements: A left sidebar, a right sidebar, and a main feed (600px wide) down the middle which scrolls. The scroll bar must be on the right-hand side of the screen like a normal webpage and the user must be able to scroll by moving the mouse wheel at any point on the page.
So far I have a page very similar to what is going on in this codepen that I found here on StackOverflow:
https://codepen.io/Sphinxxxx/pen/WjwbEO
That Pen has a fixed sidebar on the left using flexbox. I want another sidebar on the right, almost exactly like this: https://codepen.io/rolandmackintosh/pen/bGedMoX
I accomplished this simply by pasting the nav class="navigation"
code below the tag. Unfortunately, this does not work because it "pushes" the vertical scroll bar into the section
. I don't want that. I want it to stay on the right hand side of the screen, specifically so the user can put their mouse anywhere on the screen and scroll.
Note that the solution doesn't necessarily need to use Flexbox... but it's probably the best way, according to my previous trials.
Here is a CodePen recreation of my actual code:
https://codepen.io/rolandmackintosh/pen/ZEOGorB
This thread and this other thread are directionally related, but do not answer my question. There are a few more that don't quite answer the same thing.
As a final note, I'm sure what I want to do is possible, as Twitter does it!
Cheers to all who help
edit: If it is impossible with flexbox, please tell me so I can try a different solution.
edit2: this jsfiddle accomplishes two fixed sidebars with the vertical scroll on the right hand side, BUT when I fix the center's width to 600px, the sidebars do not auto-expand to fill the empty space. http://jsfiddle.net/RsRf9/2/