Tell us what’s happening:
Hello, I’m having trouble dealing with step 6, 7, 8, 9
- The display property of the .magazine-cover should be set to grid.
Failed:7. Your .magazine-cover should have a grid-template-areas property with title spanning all three columns of the first row.
Failed:8. The second row of the grid template should contain a feature article spanning two columns and a cover image.
Failed:9. The third row of the grid template should contain small-article1, small-article2, and cover-image.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Magazine Layout</title>
</head>
<body>
<main class="magazine-cover">
<header class="title">Adventure Awaits</header>
<section class="feature-article"></section>
<section class="small-article1"></section>
<section class="small-article2"></section>
<section class="cover-image"></section>
</main>
</body>
</html>
/* file: styles.css */
.magazine-cover {
display: grid;
grid-template-areas:
"title title title"
"feature-article feature-article cover-image"
"small-article1 small-article2 cover-image";
}
.title {
grid-area: title;
}
.feature-article {
grid-area: feature-article;
}
.small-article1 {
grid-area: small-area;
}
.small-article2 {
grid-area: small-area;
}
.cover-image {
grid-area: grid-image;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Challenge Information:
Design a Magazine Layout - Design a Magazine Layout