HTML + CSS / WIREFRAME WORKSHOP · STEP 1 OF 7
Place the page regions
Checking your account…
GUIDED PRACTICE
Place the page regions
Open styles.css for this step. Follow the checklist, keeping your earlier work. If a named comment is missing from an older saved draft, add it without deleting your work. Keep index.html unchanged during this step.
Your code stays in one editor through every step. Word wrap is enabled.
Step 1 of 7
Activate the layout parent
Grid belongs on the shared parent, not on each region. With no column template, the regions start in one column.
Your task
Open styles.css for this step. Follow the checklist, keeping your earlier work. If a named comment is missing from an older saved draft, add it without deleting your work. Keep index.html unchanged during this step.
To pass this step:
- In
styles.css, add a rule with selector.siteoutside all media blocks, directly below theSTYLE CLASS SITEcomment. - Set its
displayproperty togrid. - Set its
gapproperty to20px.
Press the play button labeled Run & check this step below the editor to run your code and see your check results.
Your editor is opening.
Each step builds on the last. Finish the current step before opening the next one; your code stays with you.
This is one possible solution. Compare it with your own code; opening it does not replace your work or complete a step.
/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
/* STYLE CLASS SITE LATER RULE 3 */
/* STYLE CLASS MASTHEAD */
/* STYLE CLASS NAVIGATION */
/* STYLE CLASS CONTENT */
/* STYLE CLASS DATES */
/* STYLE CLASS FOOTER */
/* STYLE CLASS SITE LATER RULE 4 */
/* STYLE CLASS CONTENT LATER RULE 2 */
/* STYLE CLASS DATES LATER RULE 2 */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
.site {
width: 92%;
max-width: 1100px;
margin: 24px auto;
}
/* STYLE CLASS SITE LATER RULE 3 */
/* STYLE CLASS MASTHEAD */
/* STYLE CLASS NAVIGATION */
/* STYLE CLASS CONTENT */
/* STYLE CLASS DATES */
/* STYLE CLASS FOOTER */
/* STYLE CLASS SITE LATER RULE 4 */
/* STYLE CLASS CONTENT LATER RULE 2 */
/* STYLE CLASS DATES LATER RULE 2 */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
.site {
width: 92%;
max-width: 1100px;
margin: 24px auto;
}
/* STYLE CLASS SITE LATER RULE 3 */
.site {
grid-template-areas: "header header" "nav nav" "main aside" "footer footer";
}
/* STYLE CLASS MASTHEAD */
/* STYLE CLASS NAVIGATION */
/* STYLE CLASS CONTENT */
/* STYLE CLASS DATES */
/* STYLE CLASS FOOTER */
/* STYLE CLASS SITE LATER RULE 4 */
/* STYLE CLASS CONTENT LATER RULE 2 */
/* STYLE CLASS DATES LATER RULE 2 */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
.site {
width: 92%;
max-width: 1100px;
margin: 24px auto;
}
/* STYLE CLASS SITE LATER RULE 3 */
.site {
grid-template-areas: "header header" "nav nav" "main aside" "footer footer";
}
/* STYLE CLASS MASTHEAD */
.masthead {
grid-area: header;
}
/* STYLE CLASS NAVIGATION */
.navigation {
grid-area: nav;
}
/* STYLE CLASS CONTENT */
/* STYLE CLASS DATES */
/* STYLE CLASS FOOTER */
/* STYLE CLASS SITE LATER RULE 4 */
/* STYLE CLASS CONTENT LATER RULE 2 */
/* STYLE CLASS DATES LATER RULE 2 */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
.site {
width: 92%;
max-width: 1100px;
margin: 24px auto;
}
/* STYLE CLASS SITE LATER RULE 3 */
.site {
grid-template-areas: "header header" "nav nav" "main aside" "footer footer";
}
/* STYLE CLASS MASTHEAD */
.masthead {
grid-area: header;
}
/* STYLE CLASS NAVIGATION */
.navigation {
grid-area: nav;
}
/* STYLE CLASS CONTENT */
.content {
grid-area: main;
}
/* STYLE CLASS DATES */
.dates {
grid-area: aside;
}
/* STYLE CLASS FOOTER */
.footer {
grid-area: footer;
}
/* STYLE CLASS SITE LATER RULE 4 */
/* STYLE CLASS CONTENT LATER RULE 2 */
/* STYLE CLASS DATES LATER RULE 2 */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
.site {
width: 92%;
max-width: 1100px;
margin: 24px auto;
}
/* STYLE CLASS SITE LATER RULE 3 */
.site {
grid-template-areas: "header header" "nav nav" "main aside" "footer footer";
}
/* STYLE CLASS MASTHEAD */
.masthead {
grid-area: header;
}
/* STYLE CLASS NAVIGATION */
.navigation {
grid-area: nav;
}
/* STYLE CLASS CONTENT */
.content {
grid-area: main;
}
/* STYLE CLASS DATES */
.dates {
grid-area: aside;
}
/* STYLE CLASS FOOTER */
.footer {
grid-area: footer;
}
/* STYLE CLASS SITE LATER RULE 4 */
.site {
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
/* STYLE CLASS CONTENT LATER RULE 2 */
/* STYLE CLASS DATES LATER RULE 2 */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>/* STYLE ALL ELEMENTS */
* {
box-sizing: border-box;
}
/* STYLE BODY */
body {
margin: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
color: #17283c;
background-color: #eef4f8;
}
/* STYLE CLASS SITE DIRECT CHILD ALL ELEMENTS */
.site > * {
padding: 20px;
border-radius: 10px;
background-color: white;
}
/* STYLE CLASS MASTHEAD AND CLASS FOOTER */
.masthead,
.footer {
background-color: #12304a;
color: white;
}
/* STYLE A */
a {
color: #007396;
}
/* STYLE CLASS SITE */
.site {
display: grid;
gap: 20px;
}
/* STYLE CLASS SITE LATER RULE 2 */
.site {
width: 92%;
max-width: 1100px;
margin: 24px auto;
}
/* STYLE CLASS SITE LATER RULE 3 */
.site {
grid-template-areas: "header header" "nav nav" "main aside" "footer footer";
}
/* STYLE CLASS MASTHEAD */
.masthead {
grid-area: header;
}
/* STYLE CLASS NAVIGATION */
.navigation {
grid-area: nav;
}
/* STYLE CLASS CONTENT */
.content {
grid-area: main;
}
/* STYLE CLASS DATES */
.dates {
grid-area: aside;
}
/* STYLE CLASS FOOTER */
.footer {
grid-area: footer;
}
/* STYLE CLASS SITE LATER RULE 4 */
.site {
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
/* STYLE CLASS CONTENT LATER RULE 2 */
.content {
min-height: 240px;
}
/* STYLE CLASS DATES LATER RULE 2 */
.dates {
align-self: start;
}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Place the page regions</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<!-- PAGE CONTENT: Build the page below this comment. -->
<div class="site">
<header class="masthead"><h1>Community Corner</h1></header>
<nav class="navigation"><a href="#events">Events</a></nav>
<main class="content" id="events">
<h2>Make something small</h2>
<p>Bring a notebook and a question.</p>
</main>
<aside class="dates">
<h2>Dates</h2>
<p>Saturday at 10am</p>
</aside>
<footer class="footer"><p>Everyone starts somewhere.</p></footer>
</div>
</body>
</html>Code and completed steps save in this browser when signed out. Sign in to save across devices.
Choose the copy to continue. Your account work will only be replaced if you choose this device.
Ready to checkRun the checks to see your results here.