84 lines
1.7 KiB
Markdown
84 lines
1.7 KiB
Markdown
|
---
|
||
|
id: 6140cfc08ca9c5128c3e6478
|
||
|
title: Step 7
|
||
|
challengeType: 0
|
||
|
dashedName: step-7
|
||
|
---
|
||
|
|
||
|
# --description--
|
||
|
|
||
|
Dai le seguenti prorpietà con i seguenti valori: `position` con `absolute`, `left` con `50%`, e `top` con `50%`, al selettore `.line`.
|
||
|
|
||
|
# --hints--
|
||
|
|
||
|
Il selettore `.line` dovrebbe avere una proprietà `position` con valore di `absolute`.
|
||
|
|
||
|
```js
|
||
|
assert(new __helpers.CSSHelp(document).getStyle('.line')?.position === 'absolute');
|
||
|
```
|
||
|
|
||
|
Il selettore `.line` dovrebbe avere una proprietà `left` con valore di `50%`.
|
||
|
|
||
|
```js
|
||
|
assert(new __helpers.CSSHelp(document).getStyle('.line')?.left === '50%');
|
||
|
```
|
||
|
|
||
|
Il tuo selettore `.line` dovrebbe avere una prorpietà `top` con valore di `50%`.
|
||
|
|
||
|
```js
|
||
|
assert(new __helpers.CSSHelp(document).getStyle('.line')?.top === '50%');
|
||
|
```
|
||
|
|
||
|
# --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
|
||
|
.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--
|
||
|
.line {
|
||
|
background-color: black;
|
||
|
width: 50%;
|
||
|
height: 2px;
|
||
|
}
|
||
|
--fcc-editable-region--
|
||
|
```
|