Struggling to create a grid here, but no matter what I do with the width and height in CSS, nothing changes.
I'm attempting to replicate this design https://i.sstatic.net/LLXqr.jpg and here's the code I've been experimenting with.
.container {
background-color: #ccc;
margin: 180px;
padding: 100px;
text-align: center;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr;
gap: 7px 7px;
grid-template-areas: "A A A A" "B B B F" "C D E F";
justify-content: center;
}
.A {
grid-area: A;
width: 100%;
height: 20%;
}
.B {
grid-area: B;
}
.C {
grid-area: C;
}
.D {
grid-area: D;
}
.E {
grid-area: E;
}
.F {
grid-area: F;
}
<body>
<div class="container">
<div class="A">A</div>
<div class="B">B</div>
<div class="C">C</div>
<div class="D">D</div>
<div class="E">E</div>
<div class="F">F</div>
</div>
</body>
No luck trying to adjust the width and height of class A. Even attempted to make it responsive, but feel lost in the confusion.