div {
display: grid;
grid-template-columns: 1fr 1fr;
grid-gap: 10px;
}
.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;
}
.wrapper {
display: grid;
grid-gap: 1rem;
grid-template-columns: 1fr 1fr 1fr;
grid-auto-flow: dense;
padding: 1rem;
}
.box {
background-color: red;
color: #fff;
border-radius: 0.5rem;
padding: 1rem;
font-size: 200%;
}
.a,
.d,
.e,
.f {
background-color: green;
grid-column: span 2; /* <-- here is the trick */
}
<div class="grid-container">
<div class="grid-item">1</div>
<div class="grid-item">2</div>
</div>
.grid-container {
display: grid;
grid-template-columns: auto auto;
}
Code Example |
---|
Css :: how to css in jquery |
Css :: different measurements in css |
Css :: wkhtmltopdf remove thead repeating |
Css :: css background overlay |
Css :: add notification in css |
Css :: glass css |
Css :: pure css tabs |
Css :: ion-split-pane width |
Css :: tailwind background gradient |
Css :: CSS adding background image from file |
Css :: remove position absolute attribute by adding css |
Css :: css flex bottom |
Css :: font awesome center icon vertically and horizontally |
Css :: responsive width css |
Css :: writing mode css |
Css :: make table resopnsive for mobile |
Css :: text-transform |
Css :: inline pseudo element |
Css :: simple css reset |
Css :: using inline styling in React |
Css :: css minmax |
Css :: css clippath |
Css :: elementor vertical line |
Css :: progress bar bootstrap border |
Css :: text-decoration |
Css :: jquery css unset(remove) certain style |
Css :: matrix css |
Css :: css line-height default |
Css :: button css normal |
Css :: media queries and or conditions |