I want to put grid in center, but it is always going to left. My idea is to create music album display photos.
To explain what i want i display an image. The first photos are what are happening, and where it is called "jazz" is my objective.
The code is:
<style>
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 20px;
align-items: center;
justify-items: center;
}
.grid img {
border: 1px solid #ccc;
box-shadow: 2px 2px 6px 0px rgba(0,0,0,0.3);
max-width: 100%;
margin: auto;
justify-items: center;
}
</style>
<section class="grid">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
<img src="https://images.shazam.com/coverart/t510017399-b1503746433_s400.jpg" alt="Sample photo">
</section>