I have a problem with css-template-layout. That plugin helps me cut my content into slots. The content slot has the biggest height and usually some pictures. When pictures finish loading my content div gets bigger, but my content slot stays the same size. At that point, the content overlays the footer.
So the page starts off like this:
My Cool Site
──────┬──────────────────
home │ My favorite pics:
about │
pics │ (loading)
──────┴──────────────────
Copyright 2012 me.
But ends up looking like this:
My Cool Site
──────┬──────────────────
home │ My favorite pics:
about │
pics │ ┌┐ ┌─┐ ┌─┐
──────┴─└┘─│@│─│#│───────
Copyrig└─┘2└─┘ me.
Here is how my CSS looks:
body {
margin: 0;
padding: 0;
display: ".hh."
".nc."
".ff."
* 200px minmax(500px,800px) *
;
width: 100%;
background: #DDF;
}
#header { position: h; text-align: center; }
#content {
position: c;
margin: .5em;
}
#navbar {
position: n;
background: #AAD;
margin: 0;
padding: .5em;
}
#footer {
position: f;
text-align: center;
font-weight: bold;
}
body::slot(n) {
background: #AAD;
}
#header, #footer {
background: #CCE;
}
I load css-template simply by:
$.templateLayoutShowOnReady();
$(function() {
$.setTemplateLayout('/static/style1.css');
});
What I tried to do is to try to set/redo templateLayout in function $(window).load() but it didn't work.
Any ideas? Thanks in advance.