-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
83 lines (57 loc) · 2.81 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
EZ-Sticky-Footer jQuery plugin
Version: 0.1.2
jQuery plugin to make the page footer stick to the bottom of the page.
https://github.com/maratbn/EZ-Sticky-Footer
https://plugins.jquery.com/ez-sticky-footer
Copyright (c) 2013-2014 Marat Nepomnyashy http://maratbn.com maratbn@gmail
Licensed under BSD-3
JavaScript-based solution for a non-trival CSS problem.
* No numeric configuration with dynamically-changing and arbitrary
footer / content areas heights.
* No absolute or relative positioning.
* No other funky CSS tricks and hacks, in fact no CSS required.
* Works on IE6+.
* Works on the default Android Browser.
The plugin requires that several <div>s (or any other tags that are
displayed in block mode) be designated as:
(1) Main page container <div>
(2) The content expander <div>
(3) The page footer <div>
The <div>s are designated by assigning them special CSS class names
according to the following table:
role CSS class name to assign
---- ------------------------
page container jq-ez-sticky-footer-page-container
content expander jq-ez-sticky-footer-content-expander
page footer jq-ez-sticky-footer-page-footer
The structure of the page must be the following:
<body>
<div class='jq-ez-sticky-footer-page-container'>
<div>your header (does not need any CSS class)</div>
<div>
...
your content (does not need any CSS class)
...
<div class='jq-ez-sticky-footer-content-expander'></div>
</div>
<div class='jq-ez-sticky-footer-page-footer'>
your footer
</div>
</div>
</body>
Important:
(1) The container <div> designated for use by the plugin should
not have any customized margin or padding styles applied to
it, as the plugin needs to manipulate these settings for it to
work. If needed by the page, these settings can still be
specified in a nested <div>.
(2) The expander <div> must be inside the page content <div>.
(3) The expander <div> must be completely empty.
Please see INSTALLATION_INSTRUCTIONS for more details.
If the plugin does not seem to work correctly, please file a bug report
at:
https://github.com/maratbn/EZ-Sticky-Footer/issues
When filing a bug report, please make sure to state the browser you're
using, and to include links to 'example.html' on your webserver, as
well as the page on which the plugin is deployed but does not seem to
be working.