Learn Intermediate CSS by Building a Cat Painting - Step 9

Tell us what’s happening:

Describe your issue in detail here.
i need a help on the css position element

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>
    </main>
</body>
</html>
/* file: styles.css */
* {
  box-sizing: border-box;
}

body {
  background-color: #c9d2fc;
}

.cat-head {

/* User Editable Region */

.cat-head{
  position:static, top 100%, left 100%;
}

/* User Editable Region */

  background: linear-gradient(#5e5e5e 85%, #45454f 100%);
  width: 205px;
  height: 180px;
  border: 1px solid #000;
  border-radius: 46%;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Learn Intermediate CSS by Building a Cat Painting - Step 9

You do not need two class selectors. Delete the first one.

It would be best if you treated top and left as properties, so, they should follow the syntax of a property. The values are provided in the instructions. Also, your values should be in pixels, not percentages.

Then remove this extra-closing curly brace.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.