.container--1 {
/* CSS GRID */
display: grid;
grid-template-columns: 200px 200px 150px 150px;
grid-template-rows: 200px 100px;
gap: 30px;
}
.el--3 {
background-color: green;
height: 75px;
}
The last column fills all the remaining space
.container--1 {
/* CSS GRID */
display: grid;
grid-template-columns: 200px 200px 150px 1fr;
grid-template-rows: 200px 100px;
gap: 30px;
}
The 3rd column fills all the remaining space, the 4th column fills the space based on it's content
.container--1 {
/* CSS GRID */
display: grid;
grid-template-columns: 200px 200px 1fr auto;
grid-template-rows: 200px 100px;
gap: 30px;
}
The 1st column takes 50% of space, the rest of the columns take 50% of space (or 1/6 space each)
.container--1 {
/* CSS GRID */
display: grid;
grid-template-columns: 3fr 1fr 1fr 1fr;
grid-template-rows: 200px 100px;
gap: 30px;
}
You can use repeat(times, width)
if you don't want to specify every column explicitly.
.container--1 {
/* CSS GRID */
display: grid;
grid-template-columns: 3fr repeat(3, 1fr);
grid-template-rows: 200px 100px;
gap: 30px;
}