2022-04-22 16:40:12 +00:00
|
|
|
---
|
|
|
|
id: 6140cd32d018ed0f600eefce
|
|
|
|
title: Step 4
|
|
|
|
challengeType: 0
|
|
|
|
dashedName: step-4
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
2022-06-15 14:11:40 +00:00
|
|
|
Imposta la proprietà `position` del selettore `.wheel` su `absolute`. Imposta entrambe le proprietà `height` e `width` a `55vw`.
|
2022-04-22 16:40:12 +00:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
2022-06-15 14:11:40 +00:00
|
|
|
Il selettore `.wheel` dovrebbe avere una proprietà `position` impostata su `absolute`.
|
2022-04-22 16:40:12 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.position === 'absolute');
|
|
|
|
```
|
|
|
|
|
2022-06-15 14:11:40 +00:00
|
|
|
Il selettore `.wheel` dovrebbe avere una proprietà `height` impostata su `55vw`.
|
2022-04-22 16:40:12 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.height === '55vw');
|
|
|
|
```
|
|
|
|
|
2022-06-15 14:11:40 +00:00
|
|
|
Il selettore `.wheel` dovrebbe avere una proprietà `width` impostata su `55vw`.
|
2022-04-22 16:40:12 +00:00
|
|
|
|
|
|
|
```js
|
|
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.width === '55vw');
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
2022-07-04 17:07:30 +00:00
|
|
|
<html lang="en">
|
2022-04-22 16:40:12 +00:00
|
|
|
<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>
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
--fcc-editable-region--
|
|
|
|
.wheel {
|
|
|
|
border: 2px solid black;
|
|
|
|
border-radius: 50%;
|
|
|
|
margin-left: 50px;
|
|
|
|
}
|
|
|
|
--fcc-editable-region--
|
|
|
|
```
|