CSS, Web, Web Development, Layout.
1vh; } .grid__container { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1vh; } The effect is as follows: Choose the best value Many times, designers will provide us with different design styles for different scenarios, such as element sizes. With the arrival of