CSS, Web, Web Development, Layout.
class="brands__item"> <a href="#"> <img src="img/logo.png" alt=""> </a> </li> <li> <!-- ... --> </li> </ul> Center alignment has been introduced earlier. Here, we mainly focus on the processing of image size. .brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));