Skip to content

Commit

Permalink
Fix footer to bottom of web page
Browse files Browse the repository at this point in the history
  • Loading branch information
OnaMosimege committed Apr 24, 2024
1 parent 4a03c1d commit f687096
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
24 changes: 17 additions & 7 deletions app/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,24 @@

/*General*/
body {
margin: 0;
padding: 0;
margin-bottom: 60px;
}

html {
position: relative;
min-height: 100%;
padding-bottom: 60px;
}

.footer {
color: white;
background: var(--primary);
width: 100%;

position: absolute;
height: 60px;
bottom: 0;
}

.header-container {
Expand Down Expand Up @@ -81,12 +97,6 @@ body {
color: var(--primary);
}

.footer {
color: white;
background: var(--primary);
width: 100%;
}

.footer > a {
color: var(--primary-fg);
}
Expand Down
4 changes: 2 additions & 2 deletions app/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<link rel="stylesheet" href="{% static 'css/styles.css' %}">
</head>

<body class="d-flex flex-column min-vh-100">
<body>
<!--header-->
{% block app_header %}
<header>
Expand Down Expand Up @@ -52,7 +52,7 @@
</div>
<br>
<!-- app footer -->
<footer class="footer my-5 mt-auto">
<footer class="footer">
<div class="text-center p-3">
Developed by <a class="text-white" href="https://sadilar.org">SADiLaR</a>
</div>
Expand Down

0 comments on commit f687096

Please sign in to comment.