From 7c863d33cb89a482a30fa20f86819fa807a59779 Mon Sep 17 00:00:00 2001 From: Jonas Leder <git@jonasled.de> Date: Mon, 12 Apr 2021 18:57:55 +0200 Subject: [PATCH] use list for blog in footer --- public/internal/footer.php | 6 ++++-- scss/_footer.scss | 10 ++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/public/internal/footer.php b/public/internal/footer.php index c787bdb..6ded459 100644 --- a/public/internal/footer.php +++ b/public/internal/footer.php @@ -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äge:</h3> - $newestPost + <ul> + $newestPost + </ul> </div> <div class="center"> <p class="center"> diff --git a/scss/_footer.scss b/scss/_footer.scss index cfcf902..e25c33c 100644 --- a/scss/_footer.scss +++ b/scss/_footer.scss @@ -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; + } } \ No newline at end of file -- GitLab