-
Notifications
You must be signed in to change notification settings - Fork 46
/
components_footer.html
110 lines (99 loc) · 3.55 KB
/
components_footer.html
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
layout: admin
title: Components - Footer
section: components
module: components_footer
header:
icon: call_to_action
title: Footer
description: Footers are a great way to organize a lot of site navigation and information at the end of a page. This is where the user will look once hes finished scrolling through the current page or is looking for additional information about your website.
---
<section id="components_footer">
<!-- ############ -->
<!-- Introduction -->
<!-- ############ -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">Introduction</h4>
<p>Note: We use flexbox to structure our html so that the footer is always on the bottom of the page. It is important to keep the structure of your page within the 3 HTML5 tags: <code class="language-markup"><header></code>, <code class="language-markup"><main></code>, <code class="language-markup"><footer></code></p>
<footer class="page-footer example">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5>Footer Content</h5>
<p>You can use rows and columns here to organize your footer content.</p>
</div>
<div class="col l4 offset-l2 s12">
<h5>Links</h5>
<ul>
<li><a href="#!">Link 1</a></li>
<li><a href="#!">Link 2</a></li>
<li><a href="#!">Link 3</a></li>
<li><a href="#!">Link 4</a></li>
<li><a href="#!">Link 5</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2016 Copyright Text
<a class="right" href="login.html">Logout</a>
</div>
</div>
</footer>
<pre>
<code class="language-markup">
<footer class="page-footer">
<div class="container">
<div class="row">
<div class="col l6 s12">
<h5>Footer Content</h5>
<p>You can use rows and columns here to organize your footer content.</p>
</div>
<div class="col l4 offset-l2 s12">
<h5>Links</h5>
<ul>
<li><a href="#!">Link 1</a></li>
<li><a href="#!">Link 2</a></li>
<li><a href="#!">Link 3</a></li>
<li><a href="#!">Link 4</a></li>
<li><a href="#!">Link 5</a></li>
</ul>
</div>
</div>
</div>
<div class="footer-copyright">
<div class="container">
© 2016 Copyright Text
<a class="right" href="login.html">Logout</a>
</div>
</div>
</footer>
</code>
</pre>
</div>
</div>
<!-- ############# -->
<!-- Sticky Footer -->
<!-- ############# -->
<div class="row">
<div class="col s12">
<h4 class="main-text lighten-1">Sticky Footer</h4>
<p>A sticky footer always stays on the bottom of the page regardless of how little content is on the page. However, this footer will be pushed down if there is a lot of content, so it is different from a fixed footer. Add the following code to your CSS file.</p>
<p>Note: This may cause issues in Internet Explorer which has weak support for flexbox.</p>
<pre>
<code class="language-css">
body {
display: flex;
min-height: 100vh;
flex-direction: column;
}
main {
flex: 1 0 auto;
}
</code>
</pre>
</div>
</div>
</section>