My problem is that small squares on my page are appearing way below where I want them to be, leaving a lot of white space above. I've tried setting them to position: fixed;, but then everything slides off when scrolling down the page. Any suggestions on how to fix this? I've included the HTML and CSS below. https://i.sstatic.net/7Cw2s.png
.container1 {
background-color: #f1f1f1;
height: 150px;
width: 150px;
padding: 20px;
border: 1px solid #bfbfbf;
margin: 10px;
}
.container-fluid {
float: right;
padding-left: 320px;
padding-right: 20px;
}
.wrapper .sidebar {
width: 300px;
height: 100%;
background: #f1f1f1;
border: 1px solid #bfbfbf;
}
.wrapper .sidebar ul li a {
color: black;
}
.sidebar ul {
display: flex;
flex-direction: column;
padding-left: 0px;
padding-top: 20px;
}
.sidebar ul li a {
padding-top: 0px;
padding-bottom: 0px;
}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e7858888939493958697a7d3c9d1c9d7">[email protected]</a>/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<div class="wrapper">
<div class="sidebar col-xs-0">
<ul>
<li><a href="/listing">Listing</a></li>
<li><a href="/listing">Listing</a></li>
<li><a href="/listing">Listing</a></li>
<li><a href="/listing">Listing</a></li>
<li><a href="/listing">Listing</a></li>
<li><a href="/listing">Listing</a></li>
</ul>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="container1 col-md-2 col-sm-2 col-xs-12"></div>
<div class="container1 col-md-2 col-sm-2 col-xs-12"></div>
<div class="container1 col-md-2 col-sm-2 col-xs-12"></div>
<div class="container1 col-md-2 col-sm-2 col-xs-12"></div>
<div class="container1 col-md-2 col-sm-2 col-xs-12"></div>
<div class="container1 col-md-2 col-sm-2 col-xs-12"></div>
</div>
</div>