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

1.3 KiB

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

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

Il nuovo elemento div dovrebbe essere annidato nell'elemento .characters.

assert(document.querySelector('.characters div'));

Il nuovo elemento div dovrebbe avere un id con il valore offwhite-character.

assert(document.querySelector('.characters div')?.getAttribute('id') === 'offwhite-character');

--seed--

--seed-contents--

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