I am making a fixed sidebar, which I have allowed here, in a stack overflow , so now I have a fixed line with this code:
<div id="main" style="width:100%;background:red;">
<div id="sidemenu" style="float:left;height:200px;background:#000;">
menu<br />
menu<br />
menu<br />
menu<br />
menu<br />
menu<br />
</div>
<div id="content" style="height:200px;overflow-y:scroll;background:silver;">
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
content <br />
</div>
</div>
It has a height of 200 pixels (just to see how it works), but the sidebar that I need should have a height of 100% all the time. I saw various posts here on stackoverflow that say faux columns are an option: http://www.alistapart.com/articles/fauxcolumns/ . But inside mine <div id="sidebar">I will have, in some cases, two more DIVs: #menu and #submenu, so the width will change.
What can I do? I don't need support for older browsers: IE9, the latest Chrome and the latest Firefox are fine.