I'm struggling to align the full-screen red box under the navigation bar. I've tried using flex properties but it's not working as expected. My goal is to have the red box at 100% width and be responsive.
Could it be something with my nav bar that's causing this issue?
<!DOCTYPE html>
<html>
<head>
<title> Shahmir's CV </title>
<link rel = "icon" href="images/cv.png" type="image/x-icon">
<mata charaset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<link rel="stylesheet" href="cv.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<style>
#home{
background-image: url(images/1.jpg);
background-size:cover;
height: 100vh;
z-index: -1;
margin-top: -72px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
#center{
}
</style>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar" >
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" style="color: white;" href="#">WebSiteName</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li ><a class="dropdown-toggle" data-toggle="dropdown" href="#">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 1 </a>
</li>
<li><a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 2</a></li>
<li><a class="dropdown-toggle" data-toggle="dropdown" href="#">Page 3</a></li>
</ul>
</div>
</div>
</nav>
<div class="bg-danger text-white" id="home">
<div id="center">
<font color="white">shahmir</font>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
</body>
</html>