After comparing two pages, one using Bootstrap v5.1.1 and the other with 4.0.0, I have observed differences in spacing.
Bootstrap v5.1.1:
.topspacer {
padding-top: 70px;
}
.righticon {
float: right;
}
.clear {
clear: both;
}
a {
text-decoration: none;
}
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="66040909121512140716265348574857">[email protected]</a>/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
<title>Bootstrap 5 | Home</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-warning">
<a class="navbar-brand" href="#">Bootstrap 5</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto">
<li class="nav-item active"><a class="nav-link" href="https://mood-tracker.ch/main.php">Home<span class="sr-only">(current)</span></a></li><li class="nav-item"><a class="nav-link" href="settings.php">Settings</a></li><li class="nav-item"><a class="nav-link" href="nrew.php">New Entry</a></li><li class="nav-item"><a class="nav-link" href="report.php">Report</a></li></ul>
<ul class="nav navbar-nav navbar-right">
<li class="nav-item">
<a class="nav-link" href="login.php?logout=1">Logout</a>
</li>
</ul>
</div>
</nav>
<div class="topspacer"></div>
<main role="main">
<div class="container">
<div class="list-group">
<a href="settings.php" class="list-group-item list-group-item-action">Settings</a>
<a href="new.php" class="list-group-item list-group-item-action">New Entry</a>
<a href="report.php" class="list-group-item list-group-item-action">View report</a>
</div>
</div>
</main>
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781a17170c0b0c0a1908384d56495649">[email protected]</a>/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
</body>
</html>
The new layout includes spacing adjustments around the Navbar menu in Bootstrap 5 compared to Bootstrap 4.0.0 which has different spacing for list items along with changes in left/right assignment within the Navbar component. To achieve a similar layout as in the example of Bootstrap 4.0.0, you may need to check the specific changes made between these versions that affect spacing and alignment. Hope this helps!