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

55 lines
1003 B
Markdown
Raw Normal View History

---
id: 60b69a66b6ddb80858c5157d
title: Step 7
challengeType: 0
dashedName: step-7
---
# --description--
Use an id selector to give the `back-wall` element a `background-color` of `#8B4513`.
# --hints--
You should use a `#back-wall` selector.
```js
assert(new __helpers.CSSHelp(document).getStyle('#back-wall'));
```
Your `#back-wall` selector should have a `background-color` of `#8B4513`.
```js
assert(new __helpers.CSSHelp(document).getStyle('#back-wall')?.backgroundColor === 'rgb(139, 69, 19)');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>freeCodeCamp 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>
</body>
</html>
```
```css
body {
background-color: rgb(184, 132, 46);
}
--fcc-editable-region--
--fcc-editable-region--
```