forked from cartwheelweb/packaginator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factored out sticky footer into a separate file and removed it from t…
…he site. This fixes the horizontal scrolling problem, although the footer no longer sticks to the bottom on short pages.
- Loading branch information
1 parent
6b7db69
commit 807f817
Showing
4 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* This file contains the old sticky footer code that was causing the horizontal scroll bar | ||
problem. It has been separated out into this file from djangopackages.css. Currently, this | ||
file is not being used by the site. In the future, it may be integrated back in or deleted | ||
entirely. */ | ||
|
||
/* Sticky footer from http://www.cssstickyfooter.com/ | ||
(still overriding base.css) */ | ||
/* must declare 0 margins on everything, also for main layout components use padding, not | ||
vertical margins (top and bottom) to add spacing, else those margins get added to total height | ||
and your footer gets pushed down a bit more, creating vertical scroll bars in the browser */ | ||
html, body {height: 100%;} | ||
#wrap {min-height: 100%;} | ||
#main {overflow:auto; | ||
padding-bottom: 50px;} /* must be same height as the footer */ | ||
#footer {position: relative; | ||
margin-top: -50px; /* negative value of footer height */ | ||
height: 50px; | ||
clear:both;} | ||
/*Opera Fix*/ | ||
body:before {/* thanks to Maleika (Kohoutec)*/ | ||
content:""; | ||
height:100%; | ||
float:left; | ||
width:0; | ||
margin-top:-32767px;/* thank you Erik J - negate effect of float*/ | ||
} |
This file contains 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