the footer should be at the bottom always?
if the content of the page gets taller than the available space should you move the footer to normal flow?
if you give me this info i can do something for you you can work on.
> --
> You received this message because you are subscribed to the Google Groups "Elastic CSS Framework" group.
> To post to this group, send email to elastic-cs...@googlegroups.com.
> To unsubscribe from this group, send email to elastic-css-fram...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/elastic-css-framework?hl=en.
it only works on the elements that have elastic classes.
On May 25, 2011, at 11:27 AM, DaCSSDude wrote:
Thank you for getting back to us. If the content in Main or in columns becomes larger it should push the footer, it should not flow behind it.
Thank you for getting back to us. If the content in Main or in columns becomes larger it should push the footer, it should not flow behind it. Therfore, it should follow the normal flow.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Fast playground</title>
<!-- jQuery -->
<script src="../vendor/jquery/jquery.js" type="text/javascript" charset="utf-8"></script>
<!-- Elastic -->
<link rel="stylesheet" href="../vendor/elastic/elastic.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="../vendor/elastic/elastic.js" type="text/javascript" charset="utf-8"></script>
<style type="text/css" media="screen">
html{
height:100%;
}
html, body{
min-height : 100%;
}
.layout{
background : #ccc;
}
</style>
<script type="text/javascript" charset="utf-8">
var stickyFooter = function(){
if( $('.layout').height() < $('body').height() ){
$('.layout').addClass('full-height');
$('.layout .body').addClass('elastic-height');
}else{
$('.layout').removeClass('full-height');
$('.layout .body').removeClass('elastic-height');
}
Elastic.reset();
Elastic();
};
$(document).bind('elastic:initialize', stickyFooter);
$(document).bind('elastic:refresh', stickyFooter);
</script>
</head>
<body>
<div class="unit layout">
<div class="unit header">
header
</div>
<div class="unit body">
<div class="unit" style="height:500px;">
body
</div>
</div>
<div class="unit footer">
footer
</div>
</div>
</body>
</html>
On May 25, 2011, at 6:35 PM, DaCSSDude wrote:
> Hi Fernando,
>
> Thank you for getting back to us. If the content in Main or in columns becomes larger it should push the footer, it should not flow behind it.
>