Last active
December 14, 2015 20:09
-
-
Save prasofty/5141715 to your computer and use it in GitHub Desktop.
push footer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! | |
%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