diff options
-rw-r--r-- | jthanio/static/css/jthanio.css | 8 | ||||
-rw-r--r-- | jthanio/templates/base.html | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/jthanio/static/css/jthanio.css b/jthanio/static/css/jthanio.css index a133c9d..ce3484b 100644 --- a/jthanio/static/css/jthanio.css +++ b/jthanio/static/css/jthanio.css @@ -12,8 +12,14 @@ html { position: relative; min-height: 100%; } + +#page-content { + min-height: 100vh; + margin-bottom: 60px; +} + .footer { - position: absolute; + position: static; width: 100%; bottom: 0; /* Set the fixed height of the footer here */ diff --git a/jthanio/templates/base.html b/jthanio/templates/base.html index 8e3a4ed..9870c59 100644 --- a/jthanio/templates/base.html +++ b/jthanio/templates/base.html @@ -30,13 +30,13 @@ <body class="{% block body_class %}{% endblock %}"> {% wagtailuserbar %} - + <div id="page-content"> {% block content %}{% endblock %} {% block extra_js %} {# Override this in templates to add extra javascript #} {% endblock %} - + </div> <footer class="footer"> <div class="text-center bg-dark"> <span class="text-muted">Copyright © jthan.io {% now "Y" %}</span> |