use list for blog in footer
This commit is contained in:
parent
e92fb44439
commit
7c863d33cb
2 changed files with 14 additions and 2 deletions
|
@ -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">
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue