Hi all,
I’ve been searching the interwebs for a while today trying to figure out how to essentially force a partially filled div to actually fill the entire available browser window height so the footer sits at the bottom of the browser window, even when the div isn’t full of enough content to get it there. I want the footer to still flow with the height of the page if there is enough content to do so.
I’ve found several helpful posts, but none seem to get the job done (most likely due to my lack of skill). I’d like to get it resolved and thought the folks who’ve worked on MODx templates could help. The most helpful article I’ve found was:
http://www.alistapart.com/articles/footers/. I thought this would for sure work, but it doesn’t seem to.
I’m happy to share code. My CSS file is kind of messy. The site I’m working on is a "port" of an existing site, so a lot of the CSS is just baggage from the other site that I haven’t cleaned out.
Right now, I have the html and body tags set at height: 100%, and I have the following div nest:
<div id="main_right">
<div class="menu">[!Wayfinder? &startId=`0` &level=`1`!]</div><!--Close Top Navigation Container-->
<div class="greyline"></div><!--Close Greyline-->
<div class="darkgreyline"></div><!--Close Dark Greyline-->
<div class="content">
<h2>
[*longtitle*]
</h2>
[*content*]
</div><!--Close Content Container-->
<div id="footer">
© Copyright Venhill USA
</div><!--Close Footer Container-->
</div><!--Close Main Right Container-->
The above referenced article suggested some additional CSS settings in the "container" for the content and footer, which is the main_right in my layout.
I think I’ve got everything as referenced, but I still get the same behavior.
See:
http://www.venhillusa.com/index.php?id=24
Thanks a bunch for any help,
Chris