Skip to content

Instantly share code, notes, and snippets.

@prasofty
Last active December 14, 2015 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prasofty/5141715 to your computer and use it in GitHub Desktop.
Save prasofty/5141715 to your computer and use it in GitHub Desktop.
push footer
/* Wrapper for page content to push down footer */
#wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by it's height */
margin: 0 auto -60px;
}
#header {
height: 100px;
margin-bottom: 10px;
border-bottom: 1px solid #f8b9b7;
}
/* Set the fixed height of the footer here */
#push, #footer {
height: 60px;
}
#footer {
border-top: 1px solid #f8b9b7;
}
!!!
%html
%head
%body
#wrapper
#header
header
.container-fluid
.row-fluid
.span9
.content
- flash.each do |name, msg|
= content_tag :div, :id => "flash_#{name}", :class => "alert alert-#{name}" do
%a.close{"data-dismiss" => "alert", :href => "#"} ×
= raw msg
= content_tag :div, :class => "page", "data-page-action" => page_action, "data-page-controller" => page_controller do
= yield
.span3 ads
#push
#footer
.container
%p.muted footer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment