* 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
70 lines
1.4 KiB
Markdown
70 lines
1.4 KiB
Markdown
---
|
|
id: 617ace7d831f9c16a569b38a
|
|
title: Step 5
|
|
challengeType: 0
|
|
dashedName: step-5
|
|
---
|
|
|
|
# --description--
|
|
|
|
Give your `.wheel` selector a `max-height` and `max-width` property both set to `500px`.
|
|
|
|
# --hints--
|
|
|
|
Your `.wheel` selector should have a `max-height` property set to `500px`.
|
|
|
|
```js
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.maxHeight === '500px');
|
|
```
|
|
|
|
Your `.wheel` selector should have a `max-width` property set to `500px`.
|
|
|
|
```js
|
|
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.maxWidth === '500px');
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<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;
|
|
position: absolute;
|
|
height: 55vw;
|
|
width: 55vw;
|
|
}
|
|
--fcc-editable-region--
|
|
```
|