u+fdfd, first play
https://...mozilla.org/ja/play?id=JiFTgaF9...
did you know? There's playground now! Let's play
what | play URL | a |
---|---|---|
'&' css parse | [💕][1] | a |
<div class="wrapper">
<div class="box1">One 1 AR-RAHMAN: The Beneficent</div>
<div class="box2">Two</div>
<div class="box3">Three</div>
<div class="box4">Four</div>
</div>
* {
box-sizing: border-box;
}
.wrapper {
border: 2px solid #f76707;
border-radius: 5px;
background-color: #fff4e6;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 33px);
}
.wrapper > div {
border: 2px solid #ffa94d;
border-radius: 5px;
/* background-color: #ffd8a8; */
padding: 1em;
color: #d9480f;
}
.box1 {
grid-column: 1;
grid-row: 1 / span 3;
background-color:beige;
}
.box2 {
grid-column: 3;
grid-row: 1 / span 2;background-color:rebeccapurple;
}
.box3 {
grid-column: 2;
grid-row: 1;background-color:lime;
}
.box4 {
grid-column: 2 / span 2;
grid-row: 3;background-color:limegreen;
}
/*
.box1 {
grid-column-start: 1;
grid-row-start: 1;
grid-row-end: span 3;
}
.box1 {
grid-column-start: 1;
grid-row-start: span 3;
grid-row-end: 4;
}
*/