May I know what is the best way to have a fixed height side panel (usually 100% of View Height), but the width is resizable by the user?
I do not want an (HTML) split view, which shares the view area between two panels.
I wish the side panel when extended would overlap the content below it.
I have searched for two days and can’t find any similar example.
3
Answers
You should use ‘
position:absolute;top:0;left:0
‘ on side panel. This will attach the side panel to the top left corner and when user will open it with toggle button, this will show above the other content.for resizable effect you can read : jqueryui resizable
The important parts are:
Sample code:
I’ve tried to understand your problem to the best of my abilities, and as much as I could, here’s my potential solution to it.
The key here is
resize: horizontal
Make 2 sections, sidebar and content.
Let the content be as it is, and try applying the following styles to the sidebar
This will make the sidebar attached to the screen all time, scrollable, resizable and fill the window height. (if 100% is messing up try 100vh).
This will give you a layout like the one in this fiddle.