Hey everyone, I'm facing an issue where I want my
<div id="content" style="margin:0 auto;"><!--AJAX Loaded Content--></div>
to fill the space between my
<div id="header" style="position:fixed;top:0;width:100%;height:300px;"></div>
and
<div id="footer" style="position:fixed;bottom:0;width:100%;height:200px;"></div>
The only css rule I have is
html,body{position:fixed;height:100%;width:100%;}
I've already tried using height:100%;
on my #content
, but it's still displaying as height:auto;
...
Also, it needs to display correctly on mobile devices.
So, my question is: what CSS rules should I modify or add to ensure that my #content
takes up the entire space between the other two <div>
's?