* chore(curriculum): accessibility-quiz * chore(curriculum): cafe-menu * chore(curriculum): ferris-wheel * chore(curriculum): fix ferris-wheel tests * chore(curriculum): colored-markers * chore(curriculum): photo-gallery * chore(curriculum): magazine * chore(curriculum): penguin * chore(curriculum): city-skyline * chore(curriculum): registration-form * chore(curriculum): picasso-painting * chore(curriculum): balance-sheet * chore(curriculum): piano * chore(curriculum): rothko-painting * fix: title min 15 chars
78 lines
1.9 KiB
Markdown
78 lines
1.9 KiB
Markdown
---
|
|
id: 612e89562043183c86df287c
|
|
title: Step 9
|
|
challengeType: 0
|
|
dashedName: step-9
|
|
---
|
|
|
|
# --description--
|
|
|
|
Browsers can apply default margin and padding values to specific elements. To make sure your piano looks correct, you need to reset the box model.
|
|
|
|
Add an `html` rule selector to your CSS file, and set the `box-sizing` property to `border-box`.
|
|
|
|
# --hints--
|
|
|
|
You should have an `html` selector.
|
|
|
|
```js
|
|
assert(new __helpers.CSSHelp(document).getStyle('html'));
|
|
```
|
|
|
|
Your `html` selector should have the `box-sizing` property set to `border-box`.
|
|
|
|
```js
|
|
assert(new __helpers.CSSHelp(document).getStyle('html')?.boxSizing === 'border-box');
|
|
```
|
|
|
|
# --seed--
|
|
|
|
## --seed-contents--
|
|
|
|
```html
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Piano</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="stylesheet" href="./styles.css" />
|
|
</head>
|
|
<body>
|
|
<div id="piano">
|
|
<div class="keys">
|
|
<div class="key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
|
|
<div class="key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
|
|
<div class="key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
<div class="key black--key"></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
```
|
|
|
|
```css
|
|
--fcc-editable-region--
|
|
|
|
--fcc-editable-region--
|
|
```
|