* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
1.4 KiB
1.4 KiB
id, title, challengeType, dashedName
id | title | challengeType | dashedName |
---|---|---|---|
619692ff79f5770fc6d8c0b4 | Step 10 | 0 | step-10 |
--description--
Above the .ground
element, add a div
with a class
of penguin
. This div
will contain Flappy Penguin.
--hints--
You should add a new div
within the body
.
assert.equal(document.querySelectorAll('body > div')?.length, 2);
You should give the div
a class
of penguin
.
assert.include(document.querySelector('body > div:not(.ground)')?.className, 'penguin');
You should place div.penguin
before div.ground
.
assert.strictEqual(document.querySelector('.ground')?.previousElementSibling, document.querySelector('.penguin'));
--seed--
--seed-contents--
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" type="text/css" href="./styles.css" />
<title>Penguin</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
--fcc-editable-region--
<body>
<div class="ground"></div>
</body>
--fcc-editable-region--
</html>
body {
background: linear-gradient(45deg, rgb(118, 201, 255), rgb(247, 255, 222));
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
overflow: clip;
}
.ground {
width: 100vw;
height: 400px;
background: linear-gradient(90deg, rgb(88, 175, 236), rgb(182, 255, 255));
z-index: 3;
position: absolute;
}