freeCodeCamp/curriculum/challenges/italian/14-responsive-web-design-22/learn-intermediate-css-by-b.../60b69a66b6ddb80858c51581.md

69 lines
1.3 KiB
Markdown

---
id: 60b69a66b6ddb80858c51581
title: Step 11
challengeType: 0
dashedName: step-11
---
# --description--
Sotto l'elemento `back-wall`, crea un `div` con un attributo `class` del valore di `characters`. Qui creerai le figure del tuo dipinto.
# --hints--
Dovresti aggiungere solo un elemento `div`.
```js
assert(document.querySelectorAll('div').length === 2);
```
Il nuovo elemento `div` dovrebbe trovarsi dopo l'elemento `#back-wall`.
```js
assert(document.querySelector('#back-wall')?.nextElementSibling?.localName === 'div');
```
Il nuovo elemento `div` dovrebbe avere l'attributo `class` impostata su `characters`.
```js
assert(document.querySelectorAll('div')?.[1]?.classList?.contains('characters'));
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Picasso Painting</title>
<link rel="stylesheet" href="./styles.css" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
</head>
<body>
<div id="back-wall"></div>
--fcc-editable-region--
--fcc-editable-region--
</body>
</html>
```
```css
body {
background-color: rgb(184, 132, 46);
}
#back-wall {
background-color: #8B4513;
width: 100%;
height: 60%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
```