colcade
colcade copied to clipboard
Grid layout
.ui-grid {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
margin-left: auto;
margin-right: auto;
}
.ui-grid-item {
display: grid;
gap: 10px;
}
.ui-grid-item img {
width: 100%;
border-radius: 10px;
display: block;
}
.ui-grid-col {
display: grid;
align-content: start;
gap: 40px;
}
@media (min-width: 768px) {
.ui-grid {
grid-template-columns: 1fr 1fr 1fr;
}
}
@media (min-width: 1080px) {
.ui-grid {
grid-template-columns: 1fr 1fr 1fr 1fr;
}
}