67 lines
1.3 KiB
Markdown
67 lines
1.3 KiB
Markdown
---
|
|
id: 619691693bc14b0e528f5a20
|
|
title: Step 7
|
|
challengeType: 0
|
|
dashedName: step-7
|
|
---
|
|
|
|
# --description--
|
|
|
|
Seleziona l'elemento `.ground` e imposta la proprietà `width` in modo da occupare l'intera larghezza del viewport. Quindi, imposta `height` a `400px`.
|
|
|
|
# --hints--
|
|
|
|
Dovresti usare un selettore `.ground`.
|
|
|
|
```js
|
|
assert.match(code, /\.ground\s*\{/);
|
|
```
|
|
|
|
Dovresti dare all'elemento `.ground` una proprietà `width` con il valore `100vw`.
|
|
|
|
```js
|
|
assert.equal(new __helpers.CSSHelp(document).getStyle('.ground')?.width, '100vw');
|
|
```
|
|
|
|
Dovresti dare all'elemento `.ground` una proprietà `height` con il valore `400px`.
|
|
|
|
```js
|
|
assert.equal(new __helpers.CSSHelp(document).getStyle('.ground')?.height, '400px');
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="stylesheet" href="./styles.css" />
|
|
<title>Penguin</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
</head>
|
|
|
|
<body>
|
|
<div class="ground"></div>
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
```css
|
|
body {
|
|
background: linear-gradient(45deg, rgb(118, 201, 255), rgb(247, 255, 222));
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100vh;
|
|
overflow: clip;
|
|
}
|
|
|
|
--fcc-editable-region--
|
|
|
|
--fcc-editable-region--
|
|
```
|