Learn Intermediate CSS by Building a Cat Painting - Step 24

Tell us what’s happening:

“I’m not sure what I did wrong. I tried following the instructions, but the result isn’t what I expected. Could someone help me identify the issue? I’ve included the code and a description of what I was trying to achieve below.”

.cat-left-ear {
border-left:35px solid transparent;
border-right:35px solid transparent ;
border-bottom:70px solid #5e5e5e;
}

Your code so far

<!-- file: index.html -->
<!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">
          <div class="cat-left-ear">
            <div class="cat-left-inner-ear"></div>
          </div>
          <div class="cat-right-ear">
            <div class="cat-right-inner-ear"></div>
          </div>
        </div>
      </div>
    </main>
</body>
</html>
/* file: styles.css */
* {
  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%;

/* User Editable Region */

.cat-left-ear {
  border-left:35px solid transparent;
  border-right:35px solid transparent ;
  border-bottom:70px solid #5e5e5e;
}
  
  
  

/* User Editable Region */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15

Challenge Information:

Learn Intermediate CSS by Building a Cat Painting - Step 24

Tell us the error you received, which step are you stuck in?

Welcome to the forum @Kaido15-code

The .cat-head selector is missing a closing curly brace.

Happy coding

Thank you! That was my issue.

1 Like