Design a Feature Selection Page - Design a Feature Selection Page

Tell us what’s happening:

The last two questions wont let me pass. It say when the checkbox is checked the background color should change to a color of my choosing. I have the code right but it wont let me pass. What am I doing wrong?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>Selection Feature Page</title>
    <link rel="stylesheet" href="styles.css" />
</head>

<body>
    <div class="feature-card-container">
    <h1>Feature Selection</h1>
    <label class="feature-card"><input type="checkbox" id="feature-card"/>Soul</label>
   
    <label class="feature-card"><input type="checkbox" id="feature-card"/>Heart</label>


    </div>
</body>

</html>
/* file: styles.css */
input[type='checkbox'] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  border: 2px solid rgb(13,72,63);
  border-radius: 4px;
  background-color: white;
  transition: all 0.3s;
  vertical-align: middle;
  margin-right: 15px;
}

input[type='checkbox']:checked {
  background-color: rgb(17,28,94);
  border-color: rgb(19,74,13);
}

input[type='checkbox']:checked::after {
  content: "✓";
  display: block;
  text-align: center;
  color: white;
  font-weight: bold;
}

Your browser information:

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

Challenge Information:

Design a Feature Selection Page - Design a Feature Selection Page

Welcome to the forum @jadeknight703

Try removing the transition property from the CSS file.

Happy coding

What transition? From the HTML or CSS?

Ohhhh never mind, I found it. Thank you. It work!!