Skip to content

Instantly share code, notes, and snippets.

@egrueter-dev
Created April 10, 2015 14:45
Show Gist options
  • Save egrueter-dev/4aeae5659dd76d1b6d94 to your computer and use it in GitHub Desktop.
Save egrueter-dev/4aeae5659dd76d1b6d94 to your computer and use it in GitHub Desktop.
Stick footer to bottom of page, this footer also responds to changes in page height.
.body-class {
min-height: 84%;
}
<div class=container>
<%- flash.each do |key, value| -%>
<div class="alert-box alert radius">
<div class="flash flash-<%= key %>">
<%= value %>
</div>
</div>
<%- end -%>
</div>
<div class="body-class">
<%= yield %>
</div>
<%= javascript_include_tag 'application' %>
<%= render "layouts/applicationfooter" %>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment