Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

grid 4 columns 2 rows

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.75rem;
    width: min(90%, 68.5rem);
    margin-inline: auto;
}
Source by github.com #
 
PREVIOUS NEXT
Tagged: #grid #columns #rows
ADD COMMENT
Topic
Name
4+3 =