Design a Feature Selection Page - Design a Feature Selection Page

Tell us what’s happening:

the coding challenge is not validating steps 14 and 15 correctly.

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>
    <h1>Feature Selection</h1>
    <div class="feature-card-container">
        <label class="feature-card"><input type="checkbox" name="storage" checked /> Cloud Storage</label>
        <label class="feature-card"><input type="checkbox" name="support" /> Dedicated Support</label>
    </div>
</body>

</html>
/* file: styles.css */
body {
  margin: 0 auto;
  padding: 20px;
}

input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  appearance: none;
  border: 2px solid #f1be32;
  border-radius: 4px;
  background-color: white;
  transition: all 0.3s;
  vertical-align: middle;
  margin-right: 15px;
}

input[type="checkbox"]:checked {
  background-color: #f4d9a2;
  border-color: #f4d9a2;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  display: block;
  text-align: center;
}

Your browser information:

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

Challenge Information:

Design a Feature Selection Page - Design a Feature Selection Page

Hi @ethansabala, the browser validates your code after it runs, so it may not detect the background change because of the transition you applied to input[type="checkbox"]. Hope this helps :blush:

1 Like

yes…removing the transition fixed the validation issue. thank you so much!

1 Like

You welcome, enjoy coding :blush: