I am currently working on a bootstrap website where I have set up two main divs in the body - the sidebar and content. The content div on the right adjusts its height based on the amount of content within it, while the sidebar div on the left should remain fixed at a height equal to 100% of the screen size. This ensures that when scrolling through the content, the sidebar remains in place.
My current challenge is figuring out how to add a splitter between the two divs that allows for horizontal resizing by dragging. When I attempt to assign position: fixed
to the sidebar div, I encounter an issue.
<body>
<div class="sidebar"></div>
<div class="splitter"></div>
<div class="content"></div>
</body>