]> git.p6c8.net - pcdenotes.git/commitdiff
Made footer stay at the bottom
authorPatrick Canterino <patrick@patrick-canterino.de>
Sun, 23 Jan 2022 20:41:16 +0000 (21:41 +0100)
committerPatrick Canterino <patrick@patrick-canterino.de>
Sun, 23 Jan 2022 20:41:16 +0000 (21:41 +0100)
Found at:
https://www.codegrepper.com/code-examples/css/how+to+take+footer+in+bottom+but+not+fixed+in+bootstrap

notes/templates/note_base.html

index b3570ebbbf5b67264898580a25d521071f955c20..a596c0247103f2b076aedf726755b8b2db529bde 100644 (file)
@@ -1,4 +1,3 @@
-{% load markdownify %}
 <!DOCTYPE html>
 
 <html lang="en">
 <!DOCTYPE html>
 
 <html lang="en">
@@ -9,13 +8,13 @@
   <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
   <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
 </head>
   <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
   <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
 </head>
-<body>
+<body class="d-flex flex-column min-vh-100">
 
   <header class="container-fluid p-5 bg-primary text-white text-center">
     <h1><a href="/" class="link-light">Notes</a></h1>
   </header>
 
 
   <header class="container-fluid p-5 bg-primary text-white text-center">
     <h1><a href="/" class="link-light">Notes</a></h1>
   </header>
 
-  <div id="content" class="container mt-5">
+  <div id="content" class="container flex-fill">
     {% block content %}{% endblock %}
   </div>
 
     {% block content %}{% endblock %}
   </div>
 

patrick-canterino.de