freeCodeCamp/curriculum/challenges/portuguese/14-responsive-web-design-22/learn-basic-css-by-building.../5f34a1fd611d003edeafd681.md

65 lines
1.3 KiB
Markdown
Raw Normal View History

---
id: 5f34a1fd611d003edeafd681
title: Passo 20
challengeType: 0
dashedName: step-20
---
# --description--
Esse fundo marrom dificulta a leitura do texto. Altere a cor de fundo do elemento `body` para que seja `burlywood` de modo que ele tenha cor, mas que você ainda possa ler o texto.
# --hints--
Você deve definir o valor da propriedade `background-color` para `burlywood`.
```js
const hasBackground = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style['background-color'] === 'burlywood');
assert(hasBackground);
```
O elemento `body` deve ter um fundo `burlywood` (amadeirado).
```js
const bodyBackground = new __helpers.CSSHelp(document).getStyle('body')?.getPropertyValue('background-color');
assert(bodyBackground === 'burlywood');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cafe Menu</title>
<link href="styles.css" rel="stylesheet"/>
</head>
<body>
<header>
<h1>CAMPER CAFE</h1>
<p>Est. 2020</p>
</header>
<main>
<section>
<h2>Coffee</h2>
</section>
</main>
</body>
<html>
```
```css
--fcc-editable-region--
body {
background-color: brown;
}
--fcc-editable-region--
h1, h2, p {
text-align: center;
}
```