2021-10-14 23:33:13 +01:00
|
|
|
---
|
|
|
|
id: 60f1922fcbd2410527b3bd89
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 7
|
2021-10-14 23:33:13 +01:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-7
|
2021-10-14 23:33:13 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
|
|
To spruce the project up, let us add some CSS. Begin by giving the `body` a `width` of `100%`, and a `height` of `100vh`.
|
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
You should use the `body` element selector.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.exists(new __helpers.CSSHelp(document).getStyle('body'));
|
|
|
|
```
|
|
|
|
|
|
|
|
You should give the `body` a `width` of `100%`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.width, '100%');
|
|
|
|
```
|
|
|
|
|
|
|
|
You should give the `body` a `height` of `100vh`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
assert.equal(new __helpers.CSSHelp(document).getStyle('body')?.height, '100vh');
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Registration Form</title>
|
2021-10-14 23:33:13 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="styles.css" />
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Registration Form</h1>
|
|
|
|
<p>Please fill out this form with the required information</p>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|
|
|
|
|
|
|
|
```css
|
|
|
|
--fcc-editable-region--
|
|
|
|
|
|
|
|
--fcc-editable-region--
|
|
|
|
```
|