Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed footer.

  • Loading branch information...
commit a4d70b20c4d623362107803eaff67216205e9994 1 parent a66f85f
@davorg authored
Showing with 19 additions and 22 deletions.
  1. +19 −0 css/main.css
  2. +0 −22 index.html
View
19 css/main.css
@@ -8,3 +8,22 @@ div#counter {
font-weight: bold;
font-size: 5em;
}
+
+html {
+ position: relative;
+ min-height: 100%;
+}
+
+body {
+ /* Margin bottom by footer height */
+ margin-bottom: 60px;
+}
+
+div#footer {
+ position: absolute;
+ bottom: 0;
+ width: 100%;
+ /* Set the fixed height of the footer here */
+ height: 60px;
+ background-color: #f5f5f5;
+}
View
22 index.html
@@ -60,28 +60,6 @@
<div id="counter"></div>
</div>
</div>
-
- <div class="container">
- <!-- Example row of columns -->
- <!-- div class="row">
- <div class="col-md-4">
- <h2>Heading</h2>
- <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
- <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
- </div>
- <div class="col-md-4">
- <h2>Heading</h2>
- <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
- <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
- </div>
- <div class="col-md-4">
- <h2>Heading</h2>
- <p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
- <p><a class="btn btn-default" href="#" role="button">View details &raquo;</a></p>
- </div>
- </div -->
-
- </div> <!-- /container -->
<div id="footer">
<div class="container">
<p class="muted">Made by <a href="https://twitter.com/davorg/">@davorg</a></p>
Please sign in to comment.
Something went wrong with that request. Please try again.