2021-09-10 09:17:03 -07:00
|
|
|
---
|
|
|
|
id: 60a3e3396c7b40068ad69975
|
2021-10-21 10:07:52 -07:00
|
|
|
title: Step 12
|
2021-09-10 09:17:03 -07:00
|
|
|
challengeType: 0
|
2021-10-21 10:07:52 -07:00
|
|
|
dashedName: step-12
|
2021-09-10 09:17:03 -07:00
|
|
|
---
|
|
|
|
|
|
|
|
# --description--
|
|
|
|
|
|
|
|
Write a new rule using the `.frame` class selector.
|
|
|
|
|
2022-01-21 19:01:41 +05:30
|
|
|
Use the `border` shorthand declaration to give the `.frame` element a solid, black border with a width of `50px`.
|
2021-09-10 09:17:03 -07:00
|
|
|
|
|
|
|
# --hints--
|
|
|
|
|
|
|
|
Your code should have a `.frame` selector.
|
|
|
|
|
|
|
|
```js
|
|
|
|
const hasFrame = new __helpers.CSSHelp(document).getStyle('.frame');
|
|
|
|
assert(hasFrame);
|
|
|
|
```
|
|
|
|
|
|
|
|
You should set the `border` property to `50px solid black`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
const hasBorder = new __helpers.CSSHelp(document).getCSSRules().some(x => x.style.border === '50px solid black');
|
|
|
|
assert(hasBorder);
|
|
|
|
```
|
|
|
|
|
|
|
|
Your `.frame` element should have a `50px solid black` `border`.
|
|
|
|
|
|
|
|
```js
|
|
|
|
const frameBorder = new __helpers.CSSHelp(document).getStyle('.frame')?.getPropertyValue('border');
|
|
|
|
assert(frameBorder === '50px solid black');
|
|
|
|
```
|
|
|
|
|
|
|
|
# --seed--
|
|
|
|
|
|
|
|
## --seed-contents--
|
|
|
|
|
|
|
|
```css
|
|
|
|
.canvas {
|
|
|
|
width: 500px;
|
|
|
|
height: 600px;
|
|
|
|
background-color: #4d0f00;
|
|
|
|
}
|
|
|
|
--fcc-editable-region--
|
|
|
|
|
|
|
|
--fcc-editable-region--
|
|
|
|
```
|
|
|
|
|
|
|
|
```html
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2022-03-14 15:54:43 +00:00
|
|
|
<title>Rothko Painting</title>
|
2021-09-10 09:17:03 -07:00
|
|
|
<link href="./styles.css" rel="stylesheet">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="frame">
|
|
|
|
<div class="canvas">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
```
|