2021-09-13 09:51:42 -07:00
---
id: 612e9d142affc44a453655db
2021-10-21 10:07:52 -07:00
title: Step 16
2021-09-13 09:51:42 -07:00
challengeType: 0
2021-10-21 10:07:52 -07:00
dashedName: step-16
2021-09-13 09:51:42 -07:00
---
# --description--
Time to style the keys themselves. Create a `class` selector for the `.key` elements. Set the `background-color` set to the value `#ffffff` , the `position` property to `relative` , the `width` property to `41px` , and the `height` property to `175px` .
# --hints--
You should have a `.key` selector.
```js
assert(new __helpers.CSSHelp(document).getStyle('.key'));
```
Your `.key` selector should have a `background-color` property set to `#ffffff` .
```js
assert(new __helpers.CSSHelp(document).getStyle('.key')?.backgroundColor === 'rgb(255, 255, 255)');
```
Your `.key` selector should have the `position` property set to `relative` .
```js
assert(new __helpers.CSSHelp(document).getStyle('.key')?.position === 'relative');
```
Your `.key` selector should have a `width` property set to `41px` .
```js
assert(new __helpers.CSSHelp(document).getStyle('.key')?.width === '41px');
```
Your `.key` selector should have a `height` property set to `175px` .
```js
assert(new __helpers.CSSHelp(document).getStyle('.key')?.height === '175px');
```
# --seed--
## --seed-contents--
```html
<!DOCTYPE html>
< html >
< head >
< meta charset = "UTF-8" / >
2022-03-14 15:54:43 +00:00
< title > Piano< / title >
2021-09-13 09:51:42 -07:00
< 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
html {
box-sizing: border-box;
}
*, *::before, * ::after {
box-sizing: inherit;
}
#piano {
background-color: #00471b ;
width: 992px;
height: 290px;
margin: 80px auto;
padding: 90px 20px 0 20px;
}
.keys {
background-color: #040404 ;
width: 949px;
height: 180px;
padding-left: 2px;
}
--fcc-editable-region--
--fcc-editable-region--
```