My website has two navigation bars, one with a red background and the other with a blue background along with multiple anchor tags.
Recently, I noticed that when I reduce the screen size, the second navigation bar doesn't display correctly as it did before. Can anyone provide me with a solution for this issue?
For reference, here is an image of the problem: https://i.sstatic.net/0i19u.png
Below is the code snippet that includes the navigation bars:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="CSS/Header.css">
<link rel="stylesheet" type="text/css" href="CSS/styles.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-dark navbar-custom" style="background-color: red"></nav>
<nav class="navbar navbar-expand-sm container-fluid" style="background-color: #01adcd;">
<button class="navbar-toggler toggler-example" type="button" data-toggle="collapse" data-target="#navbarSupportedContent1"><span class="dark-blue-text"><i class="fas fa-bars fa-1x"></i>&;</span></button>
<div class="collapse navbar-collapse justify-content-center" id="navbarSupportedContent1">
<ul class="navbar-nav mx-auto order-0" style="background-color: #01adcd;">
<!-- Navigation items here -->
</ul>
</div>
</nav>
</header>
</body>
</html>