use list for blog in footer

This commit is contained in:
Jonas Leder 2021-04-12 18:57:55 +02:00
parent e92fb44439
commit 7c863d33cb
2 changed files with 14 additions and 2 deletions

View file

@ -12,7 +12,7 @@ function getFooter(){
while ($row = $result->fetch_assoc()) {
$title = $row["title"];
$id = $row["id"];
$newestPost .= "<a href=\"/post.php?id=$id\">$title</a><br>";
$newestPost .= "<li><a href=\"/post.php?id=$id\">$title</a></li>";
}
}
@ -29,7 +29,9 @@ function getFooter(){
</div>
<div id="newestPost">
<h3>Neueste Beitr&auml;ge:</h3>
$newestPost
<ul>
$newestPost
</ul>
</div>
<div class="center">
<p class="center">

View file

@ -54,4 +54,14 @@ footer{
height: 5px;
width: 100%;
background-color: $content-footer-div-color;
}
#newestPost{
ul {
list-style-type: none;
padding-left: 0;
}
li {
margin-bottom: 10px;
}
}