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

71 lines
1.3 KiB
Markdown
Raw Normal View History

---
id: 60b69a66b6ddb80858c51582
title: Step 12
challengeType: 0
dashedName: step-12
---
# --description--
All'interno dell'elemento `characters`, crea un altro `div` con un `id` del valore di `offwhite-character`.
# --hints--
Dovresti creare solo 1 elemento `div` aggiuntivo.
```js
assert(document.querySelectorAll('div').length === 3);
```
Il nuovo elemento `div` dovrebbe essere annidato nell'elemento `.characters`.
```js
assert(document.querySelector('.characters div'));
```
Il nuovo elemento `div` dovrebbe avere un `id` con il valore `offwhite-character`.
```js
assert(document.querySelector('.characters div')?.getAttribute('id') === 'offwhite-character');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<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>
<div class="characters">
--fcc-editable-region--
--fcc-editable-region--
</div>
</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;
}
```