PLAYBOOK WORKSHOP / HTML & CSS · STEP 1 OF 16
Build a CSS Dice Roller
Checking your account…
GUIDED PRACTICE
Build a CSS Dice Roller
Work through the checklist, then choose Run & check this step below the editor. Keep your earlier faces, CSS and all supplied comments. A passing check unlocks the next step.
Your code stays in one editor through every step. Word wrap is enabled.
Watch, pause and try it in your editor. Complete this step by passing its code checks.
Step 1 of 16
Name your dice gallery
The supplied main element holds the project. Its gallery div will hold six separate examples. The comments show exactly where each new copy belongs.
Your task
Work through the checklist, then choose Run & check this step below the editor. Keep your earlier faces, CSS and all supplied comments. A passing check unlocks the next step.
To pass this step:
- Select
index.html. Inside themainelement, directly below theGALLERY TITLEcomment, add anh1element. - Make its text
My Dice Roller. - Keep the
divwith classgallery, all six face comments, theROLLERcomment and the two file links.
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.
/* PAGE: Add this section’s CSS below. */
/* DIE AND DOT: Add this section’s CSS below. */
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<section class="stage" id="face-5">
<h2>Face 5</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot center"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 24px;
justify-content: center;
}
.stage {
flex: 0 1 200px;
}
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<section class="stage" id="face-5">
<h2>Face 5</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot center"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 24px;
justify-content: center;
}
.stage {
flex: 0 1 200px;
}
/* MIDDLE POSITIONS: Add this section’s CSS below. */
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<section class="stage" id="face-5">
<h2>Face 5</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot center"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
<section class="stage" id="face-6">
<h2>Face 6</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot middle-left"></span>
<span class="dot middle-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 24px;
justify-content: center;
}
.stage {
flex: 0 1 200px;
}
/* MIDDLE POSITIONS: Add this section’s CSS below. */
.middle-left {
grid-row: 2;
grid-column: 1;
}
.middle-right {
grid-row: 2;
grid-column: 3;
}
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<section class="stage" id="face-5">
<h2>Face 5</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot center"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
<section class="stage" id="face-6">
<h2>Face 6</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot middle-left"></span>
<span class="dot middle-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
</div>
<!-- ROLLER: Add your interactive section below. -->
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 24px;
justify-content: center;
}
.stage {
flex: 0 1 200px;
}
/* MIDDLE POSITIONS: Add this section’s CSS below. */
.middle-left {
grid-row: 2;
grid-column: 1;
}
.middle-right {
grid-row: 2;
grid-column: 3;
}
/* ROLLER: Add this section’s CSS below. */<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<section class="stage" id="face-5">
<h2>Face 5</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot center"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
<section class="stage" id="face-6">
<h2>Face 6</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot middle-left"></span>
<span class="dot middle-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
</div>
<!-- ROLLER: Add your interactive section below. -->
<section class="roller" aria-labelledby="roller-title">
<h2 id="roller-title">Roll a die</h2>
<div class="roll-output" aria-hidden="true"></div>
<button class="roll-button" type="button">Roll the Dice</button>
<p class="roll-result" role="status">Ready to roll.</p>
</section>
</main>
</body>
</html>/* PAGE: Add this section’s CSS below. */
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 24px;
background: #eef3fa;
color: #17283c;
font-family: Arial, sans-serif;
}
.workshop {
max-width: 900px;
margin: 0 auto;
}
h1 {
text-align: center;
}
/* DIE AND DOT: Add this section’s CSS below. */
.stage {
text-align: center;
margin: 24px 0;
}
.die {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
width: 144px;
height: 144px;
padding: 16px;
margin: 12px auto;
background: white;
border: 2px solid #17283c;
border-radius: 16px;
}
.dot {
width: 20px;
height: 20px;
border-radius: 50%;
background: #17283c;
align-self: center;
justify-self: center;
}
.center {
grid-row: 2;
grid-column: 2;
}
/* DIAGONAL POSITIONS: Add this section’s CSS below. */
.top-left {
grid-row: 1;
grid-column: 1;
}
.bottom-right {
grid-row: 3;
grid-column: 3;
}
/* STAGE CARDS: Add this section’s CSS below. */
.stage {
padding: 16px;
background: white;
border: 1px solid #b4c8df;
border-radius: 12px;
}
.stage h2 {
margin: 0 0 12px;
font-size: 1.25rem;
}
/* OTHER CORNERS: Add this section’s CSS below. */
.top-right {
grid-row: 1;
grid-column: 3;
}
.bottom-left {
grid-row: 3;
grid-column: 1;
}
/* FLEX GALLERY: Add this section’s CSS below. */
.gallery {
display: flex;
flex-wrap: wrap;
gap: 24px;
justify-content: center;
}
.stage {
flex: 0 1 200px;
}
/* MIDDLE POSITIONS: Add this section’s CSS below. */
.middle-left {
grid-row: 2;
grid-column: 1;
}
.middle-right {
grid-row: 2;
grid-column: 3;
}
/* ROLLER: Add this section’s CSS below. */
.roller {
display: grid;
justify-items: center;
gap: 16px;
padding: 24px;
background: #17283c;
color: white;
border-radius: 16px;
}
.roll-button {
min-height: 48px;
padding: 12px 24px;
background: #facc15;
color: #17283c;
border: 0;
border-radius: 8px;
font: inherit;
cursor: pointer;
}
.roll-button:focus-visible {
outline: 3px solid #38bdf8;
outline-offset: 4px;
}
.roll-result {
margin: 0;
}<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>My Dice Roller</title>
<link rel="stylesheet" href="styles.css" />
<!-- Rolling behavior is supplied. Focus on HTML and CSS. -->
<script src="script.js" defer></script>
</head>
<body>
<main class="workshop">
<!-- GALLERY TITLE: Add your h1 below. -->
<h1>My Dice Roller</h1>
<div class="gallery">
<!-- FACE 1: Build your first section here. -->
<section class="stage" id="face-1">
<h2>Face 1</h2>
<div class="die" aria-hidden="true">
<span class="dot center"></span>
</div>
</section>
<!-- FACE 2: Paste a copy of face-1 here, then change it. -->
<section class="stage" id="face-2">
<h2>Face 2</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 3: Paste a copy of face-2 here, then change it. -->
<section class="stage" id="face-3">
<h2>Face 3</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot center"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 4: Paste a copy of face-3 here, then change it. -->
<section class="stage" id="face-4">
<h2>Face 4</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 5: Paste a copy of face-4 here, then change it. -->
<section class="stage" id="face-5">
<h2>Face 5</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot center"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
<!-- FACE 6: Paste a copy of face-5 here, then change it. -->
<section class="stage" id="face-6">
<h2>Face 6</h2>
<div class="die" aria-hidden="true">
<span class="dot top-left"></span>
<span class="dot top-right"></span>
<span class="dot middle-left"></span>
<span class="dot middle-right"></span>
<span class="dot bottom-left"></span>
<span class="dot bottom-right"></span>
</div>
</section>
</div>
<!-- ROLLER: Add your interactive section below. -->
<section class="roller" aria-labelledby="roller-title">
<h2 id="roller-title">Roll a die</h2>
<div class="roll-output" aria-hidden="true"></div>
<button class="roll-button" type="button">Roll the Dice</button>
<p class="roll-result" role="status">Ready to roll.</p>
</section>
</main>
</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.