Tell us what’s happening:
Hello everyone,
Last two steps of the project which is asking for changing the the checkbox background-color and it’s border color after checked, and I checked it many times, and searched on web, the code must be right but it’s still not passing…
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css" <title>Selection Feature Page</title>
</head>
<h1>Feature Selection</h1>
<div class="feature-card-container">
<label class="feature-card">Feature 1
<input type="checkbox"/></label>
<label class="feature-card">Feature 2
<input type="checkbox"/></label>
<label class="feature-card">Feature 3
<input type="checkbox"/></label>
<label class="feature-card">Feature 4
<input type="checkbox"/></label>
<label class="feature-card">Feature 5
<input type="checkbox"/></label>
<label class="feature-card">Feature 6
<input type="checkbox"/></label>
</div>
<body>
</body>
</html>
/* file: styles.css */
input[type="checkbox"] {
width: 20px;
height: 20px;
appearance: none;
border: 2px solid #f79889;
cursor: pointer;
border-radius: 4px;
background-color: white;
transition: all 0.3s;
vertical-align: middle;
margin-right: 15px;
}
input[type="checkbox"]:checked {
background-color: #f1be32;
border-color: #e2a60d;
}
input[type="checkbox"]:checked::after {
content: "✓";
display: block;
text-align: center;
}
Challenge Information:
Design a Feature Selection Page - Design a Feature Selection Page