I am working on a main div that contains two separate divs for main content and sidebar content. The sidebar content can be hidden or shown by clicking a link. When the sidebar is hidden, I want the content div to occupy the entire space within the container div. However, when the sidebar content is shown, I need it to give some space to the sidebar on the left while adjusting itself accordingly. You can view the code example here. Currently, I am using jQuery to implement this functionality, but I'm open to better ways of achieving it. Thanks!