I have a lightweight and easy-to-understand code for a website project with two panels.
The first panel on the left is a large navigation (270px width, top to bottom, similar to a wiki) with approximately 30 unordered list items. Next to it is the second panel which contains the content. I want it to be simple - just two elements, left & right, with no extra features like a navbar at the top or footer.
Here's what I need:
- The first panel should have its own scroll bar independent from the second panel.
- On a computer display, the first panel should appear and stay open by default.
- On a mobile display, the first panel should appear closed initially.
- A toggle button should allow users to open the first panel when needed.
- Whether the content pushes aside or overlays doesn't matter.
I'm looking for a solution similar to the Simple Sidebar demo (linked here), but without all the excess code, dropdowns, vendors, and unnecessary Bootstrap components that are tedious to remove.
Is there a straightforward way to achieve this using HTML, CSS, jQuery, or even better, just a few lines of JavaScript? I want to avoid dealing with bloated Bootstrap code and frustrating menu configurations that seem to dominate search results...
Thank you to anyone who can provide a clear and simple resolution to this issue and help me escape this madness!