I’m working on the Personal Portfolio Webpage of the (New) Web Design Certificate,and I can’t understand why the Grid doesn’t centered.
Can someone help? Thanks
The html:
<div id="projects">
<div class="project-tile"></div>
<div class="project-tile"></div>
<div class="project-tile"></div>
<div class="project-tile"></div>
</div>
The CSS:
#projects{
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
justify-content: space-evenly;
}
.project-tile{
width: 100px;
height: 100px;
background-color: gray;
}