Hi I have been having a problem with coding my layout I want to have my sidebar stay the same with regardless of screen size, but I also need my content area to be fluid. The header stays at the top which is what I want the problem is the footer I need it to stay always at the bottom and the full width of the content area. If anyone can help it would be muchly appreciated.
Here is my code.
html, body { height: 100%; margin: 0; } #content { width: 100%; height: 100%; } #left { width: 20%; height: 100%; float: left; background-color: red; } #right { float: left; width: 80%; height: 100%; background-color: green; } #right header { background: blue; text-align: center; color: white; padding: 20px; } #right footer { background: brown; text-align: center; color: white; position: absolute; bottom: 0; width: 80%; } <div id='content'> <div id='left'>Testing</div> <div id='right'> <header>TITLE</header> <div class="content"> <p>lorem ipsum and the like.</p> </div> <footer>FOOTER</footer> </div> </div>