I am currently working on developing a Panel in the form of a div with two additional divs inside (one for the title and one for the content). Here is what I have in mind:
<div class="left-panel">
<div class="title">
<span>title<span>
</div>
<div class="content">
<span>some content</span>
</div>
</div>
My goal is to be able to collapse this panel by clicking on an arrow. When collapsed, it should transform into a narrow bar on the left side, allowing adjacent panels to expand wider. The desired effect can be seen in this image: https://i.sstatic.net/gQSk6.jpg I am encountering issues with writing the necessary CSS to achieve this functionality. How can I adjust the CSS to make it look like the example? Specifically, how can I make the content part disappear and rotate the entire panel along with the title div to the left side?