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

1.3 KiB

id title challengeType dashedName
60b69a66b6ddb80858c51581 Step 11 0 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.

assert(document.querySelectorAll('div').length === 2);

Il nuovo elemento div dovrebbe trovarsi dopo l'elemento #back-wall.

assert(document.querySelector('#back-wall')?.nextElementSibling?.localName === 'div');

Il nuovo elemento div dovrebbe avere l'attributo class impostata su characters.

assert(document.querySelectorAll('div')?.[1]?.classList?.contains('characters'));

--seed--

--seed-contents--

<!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>
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;
}