Quick Reach
Bootstrap Footer
The footer in your website using the Bootstrap framework can be created very easily. A simple footer that is not fixed can be created by using the .footer class or to give it a panel like look, use the panel-footer class in the div wrapper element.
Following example shows how to create simple and sticky footers with bootstrap.
Bootstrap simple footer example
The following example shows how to create a footer by using the panel-footer class of Bootstrap. You can see it as you scroll to the bottom part of the website, after clicking the example link below.
Experience this online
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
|
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap footer example</title>
<link rel=“stylesheet” href=“//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css”>
<script src=“https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></script>
<script src=“http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js”></script>
</head>
<body>
<!–Main container div starts here –>
<div>
<h1>A Basic Footer website</h1>
<nav role=“navigation”>
<div class=“container-fluid”>
<!– Navigation bar –>
<div class=“collapse navbar-collapse” id=“bs-example-navbar-collapse-1”>
<ul class=“nav navbar-nav”>
<li class=“active”><a href=“#”>Home</a></li>
<li class=“dropdown”>
<a href=“#” data-toggle=“dropdown”>Products <b class=“caret”></b></a>
<ul class=“dropdown-menu”>
<li><a href=“#”>Product 1</a></li>
<li><a href=“#”>Product 2</a></li>
<li><a href=“#”>Product 3</a></li>
<li class=“divider”></li>
<li><a href=“#”>Product 4</a></li>
<li class=“divider”></li>
<li><a href=“#”>Product 5</a></li>
</ul>
</li>
<li><a href=“#”>Services</a></li>
<li><a href=“#”>About</a></li>
<li><a href=“#”>Contact</a></li>
</ul>
<form class=“navbar-form navbar-left” role=“search”>
<div class=“form-group”>
<input type=“text” placeholder=“Search site”>
</div>
<button type=“submit”>Go</button>
</form>
</div><!– /.navbar-collapse –>
</div><!– /.container-fluid –>
</nav>
<!– Navigation bar ends here –>
<!–carousel section starts here –>
<div id=“carousel-example-generic” class=“carousel slide” data-ride=“carousel”>
<!– Indicators –>
<ol class=“carousel-indicators”>
<li data-target=“#carousel-example-generic” data-slide-to=“0” class=“active”></li>
<li data-target=“#carousel-example-generic” data-slide-to=“1”></li>
<li data-target=“#carousel-example-generic” data-slide-to=“2”></li>
</ol>
<!– Wrapper for slides –>
<div class=“carousel-inner”>
<div class=“item active”>
<img src=“images/CSS-logo.png” alt=“…”>
<div class=“carousel-caption”>
<h1>CSS Tutorial</h1>
<p><button>Go to CSS Tutorial</p>
</div>
</div>
<div class=“item”>
<img src=“images/jquery-logo.png” alt=“…”>
<div class=“carousel-caption”>
<h1>Write less Do More</h1>
<p><button>Go to jQuery tutorial</p>
</div>
</div>
<div class=“item”>
<img src=“images/java-logo.png” alt=“…”>
<div class=“carousel-caption”>
<h1>Java Tutorial</h1>
<p><button>Go to Java Tutorial</p>
</div>
</div>
</div>
<!– Controls –>
<a class=“left carousel-control” href=“#carousel-example-generic” data-slide=“prev”>
<span class=“glyphicon glyphicon-chevron-left”></span>
</a>
<a class=“right carousel-control” href=“#carousel-example-generic” data-slide=“next”>
<span class=“glyphicon glyphicon-chevron-right”></span>
</a>
</div>
<!–carousel section ends here –>
<hr />
<!– Example row of columns –>
<div class=“row”>
<div class=“col-lg-3”>
<h2>Example Heading!</h2>
<p class=“text-danger”></p>
<p>Example Text Here for features, product or service etc! Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc</p>
<p><a href=“#” role=“button”>More info »</a></p>
</div>
<div class=“col-lg-3”>
<h2>Example Heading</h2>
<p>Example Text Here for features, product or service etc! Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc</p>
<p><a class=“btn btn-primary” href=“#” role=“button”>More info »</a></p>
</div>
<div class=“col-lg-4”>
<h2>Existing Users</h2>
<form role=“form”>
<div>
<label for=“inputEmail3”>Email</label>
<div>
<input type=“email” id=“inputEmail3” placeholder=“Email”>
</div>
</div>
<div>
<label for=“inputPassword3”>Password</label>
<div>
<input type=“password” id=“inputPassword3” placeholder=“Password”>
</div>
</div>
<div>
<div>
<div>
<label>
<input type=“checkbox”> Remember me
</label>
</div>
</div>
</div>
<div>
<div>
<button type=“submit”>Sign in</button>
</div>
</div>
</form>
</div>
<div class=“col-lg-2”>
<ul class=“nav nav-sidebar”>
<li class=“active”><a href=“#”>Overview</a></li>
<li><a href=“”>Nav item</a></li>
<li><a href=“”>Nav item again</a></li>
<li><a href=“”>One more nav</a></li>
<li><a href=“”>Another nav item</a></li>
<li><a href=“”>More navigation</a></li>
</ul>
</div>
</div>
<hr />
<!– Site footer –>
<div class=“panel-footer”>
<p>© Company | Privacy | Terms</p>
</div>
</div>
</body>
</html>
|
Bootstrap sticky footer example
The following example shows how to create a bootstrap sticky footer. The sticky footer remains fixed at the bottom. This is a whole page example with the scrollbar so that footer can be seen, which is fixed.
Experience this online
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
|
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap popover example</title>
<link rel=“stylesheet” href=“//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css”>
<script src=“https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js”></script>
<script src=“http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js”></script>
<style>
.footer {
position: fixed;
height: 60px;
bottom: 0;
width: 100%;
background-color: #f5f5f5;
}
</style>
</head>
<body>
<!–Main container div starts here –>
<div>
<h1>A Basic Bootstrap website</h1>
<nav role=“navigation”>
<div class=“container-fluid”>
<!– Navigation bar –>
<div class=“collapse navbar-collapse” id=“bs-example-navbar-collapse-1”>
<ul class=“nav navbar-nav”>
<li class=“active”><a href=“#”>Home</a></li>
<li class=“dropdown”>
<a href=“#” data-toggle=“dropdown”>Products <b class=“caret”></b></a>
<ul class=“dropdown-menu”>
<li><a href=“#”>Product 1</a></li>
<li><a href=“#”>Product 2</a></li>
<li><a href=“#”>Product 3</a></li>
<li class=“divider”></li>
<li><a href=“#”>Product 4</a></li>
<li class=“divider”></li>
<li><a href=“#”>Product 5</a></li>
</ul>
</li>
<li><a href=“#”>Services</a></li>
<li><a href=“#”>About</a></li>
<li><a href=“#”>Contact</a></li>
</ul>
<form class=“navbar-form navbar-left” role=“search”>
<div class=“form-group”>
<input type=“text” class=“form-control” placeholder=“Search site”>
</div>
<button type=“submit”>Go</button>
</form>
</div><!– /.navbar-collapse –>
</div><!– /.container-fluid –>
</nav>
<!– Navigation bar ends here –>
<!–carousel section starts here –>
<div id=“carousel-example-generic” class=“carousel slide” data-ride=“carousel”>
<!– Indicators –>
<ol class=“carousel-indicators”>
<li data-target=“#carousel-example-generic” data-slide-to=“0” class=“active”></li>
<li data-target=“#carousel-example-generic” data-slide-to=“1”></li>
<li data-target=“#carousel-example-generic” data-slide-to=“2”></li>
</ol>
<!– Wrapper for slides –>
<div class=“carousel-inner”>
<div class=“item active”>
<img src=“images/CSS-logo.png” alt=“…”>
<div class=“carousel-caption”>
<h1>CSS Tutorial</h1>
<p><button>Go to CSS Tutorial</p>
</div>
</div>
<div class=“item”>
<img src=“images/jquery-logo.png” alt=“…”>
<div class=“carousel-caption”>
<h1>Write less Do More</h1>
<p><button>Go to jQuery tutorial</p>
</div>
</div>
<div class=“item”>
<img src=“images/java-logo.png” alt=“…”>
<div class=“carousel-caption”>
<h1>Java Tutorial</h1>
<p><button>Go to Java Tutorial</p>
</div>
</div>
</div>
<!– Controls –>
<a class=“left carousel-control” href=“#carousel-example-generic” data-slide=“prev”>
<span class=“glyphicon glyphicon-chevron-left”></span>
</a>
<a class=“right carousel-control” href=“#carousel-example-generic” data-slide=“next”>
<span class=“glyphicon glyphicon-chevron-right”></span>
</a>
</div>
<!–carousel section ends here –>
<hr />
<!– Example row of columns –>
<div>
<div class=“col-lg-3”>
<h2>Example Heading!</h2>
<p class=“text-danger”></p>
<p>Example Text Here for features, product or service etc! Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc</p>
<p><a href=“#” role=“button”>More info »</a></p>
</div>
<div class=“col-lg-3”>
<h2>Example Heading</h2>
<p>Example Text Here for features, product or service etc! Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc Example Text Here for features, product or service etc</p>
<p><a href=“#” role=“button”>More info »</a></p>
</div>
<div class=“col-lg-4”>
<h2>Existing Users</h2>
<form role=“form”>
<div>
<label for=“inputEmail3”>Email</label>
<div>
<input type=“email” id=“inputEmail3” placeholder=“Email”>
</div>
</div>
<div>
<label for=“inputPassword3”>Password</label>
<div>
<input type=“password” id=“inputPassword3” placeholder=“Password”>
</div>
</div>
<div>
<div>
<div>
<label>
<input type=“checkbox”> Remember me
</label>
</div>
</div>
</div>
<div>
<div>
<button type=“submit”>Sign in</button>
</div>
</div>
</form>
</div>
<div class=“col-lg-2”>
<ul class=“nav nav-sidebar”>
<li><a href=“#”>Overview</a></li>
<li><a href=“”>Nav item</a></li>
<li><a href=“”>Nav item again</a></li>
<li><a href=“”>One more nav</a></li>
<li><a href=“”>Another nav item</a></li>
<li><a href=“”>More navigation</a></li>
</ul>
</div>
</div>
<hr />
<!– Site footer –>
<div class=“footer”>
<p>© Company | Privacy | Terms</p>
</div>
</div>
</body>
</html>
|
For sticky or fixed footer style, just look at the <style> attribute on the top with following code:
<style>
.footer {
position: fixed;
height: 60px;
bottom: 0;
width: 100%;
background-color: #f5f5f5;
}
</style>
and use of the footer at the bottom of the page.
Further reading: Twitter Bootstrap | Bootstrap Table | Bootstrap Form
Leave A Comment?