How can I move the "content" and the "right" block to respond? The problem is that I cannot use a sub-nested grid. I don't need hacks: no margin-top, because the title may be of a different height. No javascript. Only pure CSS. If at all possible.

Now my markup looks like this:
.wrapper {
border: 1px solid red;
display: grid;
grid-template-columns: 1fr 2fr 1fr;
grid-template-areas:
"aside header header"
"left content right";
grid-gap: 15px;
}
.header, .aside, .left, .content, .right {
border: 1px solid black;
padding: 10px;
}
.header {
grid-area: header;
height: 30px;
}
.aside {
grid-area: aside;
height: 80px;
}
.left {
grid-area: left;
}
.content {
grid-area: content;
background: yellow;
}
.right {
grid-area: right;
background: yellow;
}
.left, .content, .right {
height: 100px;
}
<div class="wrapper">
<header class="header">header</header>
<aside class="aside">aside</aside>
<div class="left">left</div>
<div class="content">content</div>
<div class="right">right</div>
</div>
Run code
source
share