Currently, I am designing a website with two sidebars and a center wrapper for the main content. The sidebars will contain links that jump the user to different sections of the page. I have fixed the position of the sidebars so they stay visible as the user scrolls down, but I am facing an issue with the footer blocking the links when the user reaches the bottom of the page.
It's a bit difficult to explain the layout, so I have created a basic version of the website on jsfiddle, which you can view here.
<div class="left">Lorem Ipsum ...</div>
<div class="centre">centre</div>
<div class="right">Lorem Ipsum ...</div>
<div class="footer">footer</div>
My goal is to maintain a 20 pixel margin between the footer (in grey) and the sidebars (in red) at all times. I am struggling to make the sidebars shrink dynamically in response to the footer entering the browser window.
Preferably, I would like to achieve this using HTML and CSS without relying on JavaScript.
Thank you for your help. Regards, Matt