I have a nice layout that uses an HTML table to create a scrollable sidebar with a simple title. It works well, you can check it here: jsFiddle demo
Here is the outline of my solution:
<aside> <table> <tr> <td> <header> header </header> </td> </tr> <tr> <td class="secondcell"> <div class="remaining"> ... </div> </td> </tr> </table> </aside> <article> ... </article>
with the following CSS styles:
aside { position: absolute; left:0; top: 0; bottom: 0; width: 200px; } aside header { height: 100px; } aside table { width:100%; height:100%; } .secondcell { height:100%; width:100%; } .remaining { height: 100%; background-color: red; overflow-y: auto; } article { position: absolute; left: 200px; padding:10px; }
But, unfortunately, I use HTML tables that many people donβt like because they are not semantic, etc. etc.
So, I wanted to reproduce this layout with CSS formatting, but it does not work. You can check my attempts here: jsFiddle demo2
Maybe this is not possible at all, so I can not do this with CSS, using only divs?
Zsolt source share