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

85 lines
2.0 KiB
Markdown
Raw Normal View History

---
id: 60b69a66b6ddb80858c51583
title: Passo 13
challengeType: 0
dashedName: step-13
---
# --description--
Crie quatro elementos `div` dentro do elemento `offwhite-character`. Dê a esses elementos `div` os seguintes valores de `id`, em ordem: `white-hat`, `black-mask`, `gray-instrument` e `tan-table`.
# --hints--
Você deve adicionar quatro elementos `div` dentro do elemento `.offwhite-character`.
```js
assert(document.querySelectorAll('#offwhite-character div').length === 4);
```
A primeira nova `div` deve ter para o atributo `id` o valor de `white-hat`.
```js
assert(document.querySelectorAll('#offwhite-character div')[0]?.getAttribute('id') === 'white-hat');
```
A segunda nova `div` deve ter para o atributo `id` o valor de `black-mask`.
```js
assert(document.querySelectorAll('#offwhite-character div')[1]?.getAttribute('id') === 'black-mask');
```
A terceira nova `div` deve ter para o atributo `id` o valor de `gray-instrument`.
```js
assert(document.querySelectorAll('#offwhite-character div')[2]?.getAttribute('id') === 'gray-instrument');
```
A quarta nova `div` deve ter para o atributo `id` o valor de `tan-table`.
```js
assert(document.querySelectorAll('#offwhite-character div')[3]?.getAttribute('id') === 'tan-table');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Picasso Painting</title>
<link rel="stylesheet" type="text/css" 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">
<div id="offwhite-character">
--fcc-editable-region--
--fcc-editable-region--
</div>
</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;
}
```