I have two divs on different z-layers. The sidebar
div (in red) on the left and the main
div on the right. Both have a 2 divs embedded.
The (red-background-colored) sidebar
div stops as intended at 50% of the page. However, I fail to hide the overflow [SHOULD NOT BE SEEN. BUT IS VISIBLE.]
of this div. Thus it overlays the main
div's second inner div [BLOCK RIGHT]
.
Here is the dilemma, seen in the right hand side with the white background.
http://jsfiddle.net/brazim/v6rk1b4q/39/
Motivation for this layout: With Javascript the user will be able to display either the full content of the sidebar
or the main
content by dragging the right-hand-side edge of the sidebar
div to the left or right.
I can handle the javascript, only the correct overflow is missing.
Thanks for any hints in JsFiddle.