Recently started using Bootstrap. Here's the HTML code I have. How can I achieve consistent spacing between all my box elements without causing any of them to wrap on larger screens like laptops and desktops? In the past, I would use CSS-grid for this purpose, but due to requirements, I now need to utilize Bootstrap 4. Currently, I've set up a grid within a grid for my main content (the right-hand side of the screen), and I'm aiming to evenly space out all those elements around each side. Eventually, I plan to add a two-column row beneath the initial row in the nested grid. Thank you.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<title>Basic HTML File</title>
<style>
html, body {
height: 100%;
}
.header {
background: pink;
}
.sidebar {
background: gray;
height: 100%;
}
.content {
background: lightgrey;
height: 100%;
}
.box-1 {
background: coral;
}
.box-2 {
background: aquamarine;
}
.box-3 {
background: darkkhaki;
}
.box-4 {
background: cornflowerblue;
}
</style>
</head>
<body>
<div class="container-fluid h-100">
<div class="row" style="height: 80px;">
<div class="col header">header</div>
</div>
<div class="row h-100">
<div class="col-3 col-lg-2 sidebar h-100">sidebar</div>
<div class="col-9 col-lg-10 content h-100">
<div class="row h-25 boxes">
<div class="col-3 box-1">
box1
</div>
<div class="col-3 box-2">
box2
</div>
<div class="col-3 box-3">
box3
</div>
<div class="col-3 box-4">
box-4
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6e1e011e1e0b1c40041d2e5f405f58405e">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>