I am using CSS grid to design my web application. I want define that a class must have a min grid-column
span of 3 frames and should span over the whole grid row, if the respective class object is the only one in the respective (in this case last row).
Grid Definition
.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, auto));
grid-template-rows: 1fr min-content;
grid-gap: 50px;
}
Respective Definitions
.overalldata {
grid-column: auto / span 3;
}
.clustergraph {
grid-column: auto / span 6;
justify-items: center;
}
.userinfoboard {
grid-column: auto / span 3;
justify-items: center;
align-self: center;;
}
My Browser on full width is allowing 19 columns. If I downsize the window, so that only 11 columns are allowed, the userinfoboard
class object should span over the full width of the window, as it is the only object in its grid row.
How can I accomplish that?
I tried an answer for a question that seems close to my issue, but it is missing the characteristic of PSEUDO: min-span: span 3
:
.userinfoboard {
grid-column: 1 / -1;
justify-items: center;
align-self: center;;
}
Thank you very much!