curriculum/challenges/english/blocks/learn-intermediate-css-by-building-a-cat-painting/646ce9d790d2a44de5f99e04.md
Create two div elements, the first inside the .cat-left-ear element with a class of cat-left-inner-ear, and the second inside the .cat-right-ear element with a class of cat-right-inner-ear.
You should not change the existing div element with the class cat-left-ear.
assert(document.querySelectorAll('div.cat-left-ear').length === 1);
You should not change the existing div element with the class cat-right-ear.
assert(document.querySelectorAll('div.cat-right-ear').length === 1);
You should have one div element inside your .cat-left-ear element.
assert(document.querySelectorAll('.cat-left-ear div').length === 1);
You should have one div element inside your .cat-right-ear element.
assert(document.querySelectorAll('.cat-right-ear div').length === 1);
The new div element inside .cat-left-ear should have the class cat-left-inner-ear.
assert(document.querySelectorAll('.cat-left-ear div')[0]?.classList.contains('cat-left-inner-ear'));
The new div element inside .cat-right-ear should have the class cat-right-inner-ear.
assert(document.querySelectorAll('.cat-right-ear div')[0]?.classList.contains('cat-right-inner-ear'));
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>fCC Cat Painting</title>
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<main>
<div class="cat-head">
<div class="cat-ears">
--fcc-editable-region--
<div class="cat-left-ear">
</div>
<div class="cat-right-ear">
</div>
--fcc-editable-region--
</div>
</div>
</main>
</body>
</html>
* {
box-sizing: border-box;
}
body {
background-color: #c9d2fc;
}
.cat-head {
position: absolute;
right: 0;
left: 0;
top: 0;
bottom: 0;
margin: auto;
background: linear-gradient(#5e5e5e 85%, #45454f 100%);
width: 205px;
height: 180px;
border: 1px solid #000;
border-radius: 46%;
}