What I need here is most likely some java magic but this was the only forum section, at least remotely, connected to my problem. Here's my starting point:
Basic HTML:
Code: Select all
<div id="header">
</div>
<div id="container">
<div id="content">
</div>
</div>
<div id="footer">
</div>
Code: Select all
#header {
height: 110px;
position: fixed;
}
#container {
height: [color=#BF0000]??????????[/color];
position: fixed;
top: 110px;
}
#content {
height: [color=#BF0000]??????????[/color];
overflow: scroll;
}
#footer {
height: 70px;
position: fixed;
bottom: 0;
}
- div#container is position:fixed but I need it's height to be adaptive to browser window height;
- div#content needs to be overflow:scroll but it's height should depend on adaptive height of div#container;
I don't think it can be done with pure CSS but some javascripting could get the job done. And it's beyond my skills... If you have an idea how to solve this I would highly appreciate it!
Best regards,
Jakov