Tell us what’s happening:
Good day
There is one step I’m struggling with. The error states “12. When the checkboxes are selected, there should be a checkmark ✓ in the center of the checkbox.”
Can you please help me?
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">Online Shopping
</label>
<label class="feature-card">
<input type="checkbox">Computer Games
</label>
<label class="feature-card">
<input type="checkbox">Social Media
</label>
</div>
</body>
</html>
/* file: styles.css */
input[type="checkbox"] {
appearance: none;
border-width: 4px;
border: 7px solid purple;
cursor: pointer;
}
input[type="checkbox"]:checked {
content: "✓";
background-color: green;
border: 5px solid yellow;
text-align: center;
color: white;
display: block;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36 Edg/143.0.0.0
Challenge Information:
Design a Feature Selection Page - Design a Feature Selection Page