2022-06-01 14:10:25 +00:00
|
|
|
---
|
|
|
|
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 `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>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<title>Picasso Painting</title>
|
2022-06-21 15:00:08 +00:00
|
|
|
<link rel="stylesheet" href="./styles.css" />
|
2022-06-01 14:10:25 +00:00
|
|
|
<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;
|
|
|
|
}
|
|
|
|
```
|