1.7 KiB
1.7 KiB
id | title | challengeType | dashedName |
---|---|---|---|
6140cdebd39d6a101e747529 | Step 6 | 0 | step-6 |
--description--
Crea un selettore per gli elementi .line
. Inizia impostando background-color
su black
, width
al 50%
e height
a 2px
.
--hints--
Dovresti avere un selettore .line
.
assert(new __helpers.CSSHelp(document).getStyle('.line'));
Il selettore .line
dovrebbe avere una proprietà background-color
impostata su black
.
assert(new __helpers.CSSHelp(document).getStyle('.line')?.backgroundColor === "black");
Il selettore .line
dovrebbe avere una proprietà width
impostata al 50%
.
assert(new __helpers.CSSHelp(document).getStyle('.line')?.width === "50%");
Il selettore .line
dovrebbe avere una proprietà height
impostata a 2px
.
assert(new __helpers.CSSHelp(document).getStyle('.line')?.height === "2px");
--seed--
--seed-contents--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ferris Wheel</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<div class="wheel">
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<span class="line"></span>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
<div class="cabin"></div>
</div>
</body>
</html>
.wheel {
border: 2px solid black;
border-radius: 50%;
margin-left: 50px;
position: absolute;
height: 55vw;
width: 55vw;
max-width: 500px;
max-height: 500px;
}
--fcc-editable-region--
--fcc-editable-region--