28 lines
No EOL
414 B
CSS
28 lines
No EOL
414 B
CSS
.grid-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 20px;
|
|
justify-items: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.card {
|
|
width: 100%;
|
|
height: 40vh;
|
|
cursor: pointer;
|
|
padding: 10px;
|
|
text-align: center;
|
|
}
|
|
|
|
img {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 250px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.grid-container {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
} |