diff --git a/public/internal/footer.php b/public/internal/footer.php index c787bdb9f6760e586e7c4dd83823d3b3429cf3f2..6ded4594945efbdeee5036496346a9e9fa53bd55 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 cfcf902c004ee69c4a4488606e8501d33706fba4..e25c33c1dc170c689387aefdc694a5f1c216b9d0 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