freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-css-animation-by-buil.../617ace7d831f9c16a569b38a.md

70 lines
1.4 KiB
Markdown
Raw Normal View History

---
id: 617ace7d831f9c16a569b38a
title: Step 5
challengeType: 0
dashedName: step-5
---
# --description--
Dai al selettore `.wheel` delle proprietà `max-height` e `max-width` entrambe impostate a `500px`.
# --hints--
Il selettore `.wheel` dovrebbe avere una proprietà `max-height` impostata a `500px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.maxHeight === '500px');
```
Il selettore `.wheel` dovrebbe avere una proprietà `max-width` impostata a `500px`.
```js
assert(new __helpers.CSSHelp(document).getStyle('.wheel')?.maxWidth === '500px');
```
# --seed--
## --seed-contents--
```html
<!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>
```
```css
--fcc-editable-region--
.wheel {
border: 2px solid black;
border-radius: 50%;
margin-left: 50px;
position: absolute;
height: 55vw;
width: 55vw;
}
--fcc-editable-region--
```