2020-02-25 22:53:07 -06:00
|
|
|
---
|
|
|
|
id: 5d8a4cfbe6b6180ed9a1c9e4
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 7
|
2020-02-25 22:53:07 -06:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-7
|
2020-02-25 22:53:07 -06:00
|
|
|
---
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --description--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
|
|
|
Next, target the `dashboard` class you created and give it a `width` of `980px` and a `height` of `500px`.
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --hints--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
test-text
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```js
|
|
|
|
const dashboard = $('.dashboard');
|
|
|
|
assert(
|
|
|
|
dashboard.css('width') === '980px' && dashboard.css('height') === '500px'
|
|
|
|
);
|
2020-02-25 22:53:07 -06:00
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
# --seed--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --before-user-code--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>D3 Dashboard</title>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<div class="dashboard"></div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
## --seed-contents--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
```html
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #ccc;
|
|
|
|
}
|
2020-02-25 22:53:07 -06:00
|
|
|
|
2020-11-27 19:02:05 +01:00
|
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
```
|
|
|
|
|
|
|
|
# --solutions--
|
2020-02-25 22:53:07 -06:00
|
|
|
|
|
|
|
```html
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
background-color: #ccc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dashboard {
|
|
|
|
width: 980px;
|
|
|
|
height: 500px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
```
|