mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-25 12:59:05 +02:00
169 lines
4.9 KiB
HTML
169 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Meta, title, CSS, favicons, etc. -->
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
|
|
<title>
|
|
|
|
Sticky footer template · Bootstrap
|
|
|
|
</title>
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<link href="/assets/css/bootstrap.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!--[if lt IE 9]>
|
|
<script src="/assets/js/html5shiv.js"></script>
|
|
<script src="/assets/js/respond/respond.min.js"></script>
|
|
<![endif]-->
|
|
|
|
<!-- Favicons -->
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/ico/apple-touch-icon-144-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="/assets/ico/apple-touch-icon-114-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/assets/ico/apple-touch-icon-72-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" href="/assets/ico/apple-touch-icon-57-precomposed.png">
|
|
<link rel="shortcut icon" href="/assets/ico/favicon.png">
|
|
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-146052-10']);
|
|
_gaq.push(['_trackPageview']);
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
</script>
|
|
|
|
<!-- Place anything custom after this. -->
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Page content of course! -->
|
|
<!-- Custom styles for this template -->
|
|
<style>
|
|
|
|
/* Sticky footer styles
|
|
-------------------------------------------------- */
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
/* The html and body elements cannot have any padding or margin. */
|
|
}
|
|
|
|
/* Wrapper for page content to push down footer */
|
|
#wrap {
|
|
min-height: 100%;
|
|
height: auto !important;
|
|
height: 100%;
|
|
/* Negative indent footer by its height */
|
|
margin: 0 auto -60px;
|
|
}
|
|
|
|
/* Set the fixed height of the footer here */
|
|
#push,
|
|
#footer {
|
|
height: 60px;
|
|
}
|
|
#footer {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
/* Lastly, apply responsive CSS fixes as necessary */
|
|
@media (max-width: 767px) {
|
|
#footer {
|
|
margin-left: -20px;
|
|
margin-right: -20px;
|
|
padding-left: 20px;
|
|
padding-right: 20px;
|
|
}
|
|
}
|
|
|
|
/* Custom page CSS
|
|
-------------------------------------------------- */
|
|
/* Not required for template or sticky footer method. */
|
|
|
|
.container {
|
|
width: auto;
|
|
max-width: 680px;
|
|
}
|
|
.container .credit {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<!-- Wrap all page content here -->
|
|
<div id="wrap">
|
|
|
|
<!-- Begin page content -->
|
|
<div class="container">
|
|
<div class="page-header">
|
|
<h1>Sticky footer</h1>
|
|
</div>
|
|
<p class="lead">Pin a fixed-height footer to the bottom of the viewport in desktop browsers with this custom HTML and CSS.</p>
|
|
<p>Use <a href="./sticky-footer-navbar.html">the sticky footer with a fixed navbar</a> if need be, too.</p>
|
|
</div>
|
|
|
|
<div id="push"></div>
|
|
</div>
|
|
|
|
<div id="footer">
|
|
<div class="container">
|
|
<p class="muted credit">Example courtesy <a href="http://martinbean.co.uk">Martin Bean</a> and <a href="http://ryanfait.com/sticky-footer/">Ryan Fait</a>.</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- JS and analytics only. -->
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="/assets/js/jquery.js"></script>
|
|
<script src="/assets/js/transition.js"></script>
|
|
<script src="/assets/js/alert.js"></script>
|
|
<script src="/assets/js/modal.js"></script>
|
|
<script src="/assets/js/dropdown.js"></script>
|
|
<script src="/assets/js/scrollspy.js"></script>
|
|
<script src="/assets/js/tab.js"></script>
|
|
<script src="/assets/js/tooltip.js"></script>
|
|
<script src="/assets/js/popover.js"></script>
|
|
<script src="/assets/js/button.js"></script>
|
|
<script src="/assets/js/collapse.js"></script>
|
|
<script src="/assets/js/carousel.js"></script>
|
|
<script src="/assets/js/typeahead.js"></script>
|
|
<script src="/assets/js/affix.js"></script>
|
|
|
|
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
|
|
<script src="/assets/js/holder/holder.js"></script>
|
|
|
|
<script src="/assets/js/application.js"></script>
|
|
|
|
<!-- Analytics
|
|
================================================== -->
|
|
<script>
|
|
var _gauges = _gauges || [];
|
|
(function() {
|
|
var t = document.createElement('script');
|
|
t.type = 'text/javascript';
|
|
t.async = true;
|
|
t.id = 'gauges-tracker';
|
|
t.setAttribute('data-site-id', '4f0dc9fef5a1f55508000013');
|
|
t.src = '//secure.gaug.es/track.js';
|
|
var s = document.getElementsByTagName('script')[0];
|
|
s.parentNode.insertBefore(t, s);
|
|
})();
|
|
</script>
|
|
|
|
</body>
|
|
</html> |