2022-06-07 17:06:49 +00:00
---
id: 5d822fd413a79914d39e98d1
title: Step 9
challengeType: 0
dashedName: step-9
---
# --description--
2022-09-29 17:24:43 +00:00
Dai all'elemento `.background-buildings` delle proprietà `width` e `height` del `100%` in modo da renderlo della stessa larghezza e altezza del suo genitore, il `body` .
2022-06-07 17:06:49 +00:00
# --hints--
Dovresti usare la classe `background-buildings` per selezionare l'elemento corretto.
```js
assert.exists(new __helpers.CSSHelp(document).getStyle('.background-buildings'));
```
L'elemento `.background-buildings` dovrebbe avere una proprietà `width` del `100%` .
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.background-buildings')?.width, '100%');
```
L'elemento `.background-buildings` dovrebbe avere una proprietà `height` del `100%` .
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('.background-buildings')?.height, '100%');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
2022-07-05 17:37:27 +00:00
< html lang = "en" >
2022-06-07 17:06:49 +00:00
< head >
2022-07-05 17:37:27 +00:00
< meta charset = "UTF-8" >
2022-06-07 17:06:49 +00:00
< title > City Skyline< / title >
2022-06-21 15:00:08 +00:00
< link href = "styles.css" rel = "stylesheet" / >
2022-06-07 17:06:49 +00:00
< / head >
< body >
< div class = "background-buildings" > < / div >
< / body >
< / html >
```
```css
* {
border: 1px solid black;
box-sizing: border-box;
}
body {
height: 100vh;
margin: 0;
overflow: hidden;
}
--fcc-editable-region--
--fcc-editable-region--
```