2021-11-09 10:03:21 -08:00
|
|
|
---
|
|
|
|
id: 6140cd32d018ed0f600eefce
|
|
|
|
title: Step 4
|
|
|
|
challengeType: 0
|
|
|
|
dashedName: step-4
|
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
|
|
Set the `position` property of the `.wheel` selector to `absolute`. Set the `height` and `width` both to `55vw`.
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
Your `.wheel` selector should have a `position` property set to `absolute`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.position === 'absolute');
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `.wheel` selector should have a `height` property set to `55vw`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.height === '55vw');
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `.wheel` selector should have a `width` property set to `55vw`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.width === '55vw');
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Ferris Wheel</title>
|
2021-11-09 10:03:21 -08:00
|
|
|
<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--
|
|
|
|
```
|