2020-02-26 04:53:07 +00:00
|
|
|
---
|
|
|
|
id: 5d8a4cfbe6b6180ed9a1c9e5
|
|
|
|
title: Part 8
|
|
|
|
challengeType: 0
|
2021-01-13 02:31:00 +00:00
|
|
|
dashedName: part-8
|
2020-02-26 04:53:07 +00:00
|
|
|
---
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --description--
|
2020-02-26 04:53:07 +00:00
|
|
|
|
|
|
|
Give the dashboard a `background-color` of `white` and a `box-shadow` of `5px 5px 5px 5px #888` to give it a little depth.
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --hints--
|
2020-02-26 04:53:07 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
test-text
|
2020-02-26 04:53:07 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```js
|
|
|
|
const dashboard = $('.dashboard');
|
|
|
|
assert(
|
|
|
|
dashboard.css('background-color') === 'rgb(255, 255, 255)' &&
|
|
|
|
dashboard.css('box-shadow') === 'rgb(136, 136, 136) 5px 5px 5px 5px'
|
|
|
|
);
|
2020-02-26 04:53:07 +00:00
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
# --seed--
|
2020-02-26 04:53:07 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --before-user-code--
|
2020-02-26 04:53:07 +00:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>D3 Dashboard</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="dashboard"></div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
## --seed-contents--
|
2020-02-26 04:53:07 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
```html
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #ccc;
|
|
|
|
}
|
2020-02-26 04:53:07 +00:00
|
|
|
|
2020-11-27 18:02:05 +00:00
|
|
|
.dashboard {
|
|
|
|
width: 980px;
|
|
|
|
height: 500px;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
2020-02-26 04:53:07 +00:00
|
|
|
|
|
|
|
```html
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard {
|
|
|
|
width: 980px;
|
|
|
|
height: 500px;
|
|
|
|
background-color: white;
|
|
|
|
box-shadow: 5px 5px 5px 5px #888;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|