Tell us what’s happening:
my last three steps won’t pass despite matching with what is required as displayed on the interactive editor.
input[type=“checkbox”]:checked::after{
content: “✓”;
display: block;
text-align: center;
} . This is my code yet it 's not checking if i have the checkmark at the center of the checkbox input.
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>
<input type="checkbox">
Premiun
</label>
<label>
<input type="checkbox">
Basic
</label>
</div>
</body>
</html>
/* file: styles.css */
input[type="checkbox"] {
appearance: none;
border: 1px solid black ;
width: 20px;
height: 20px;
vertical-align: middle;
}
input[type="checkbox"]:checked{
border-color: blue;
background-color: #f0be32;
}
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/138.0.0.0 Safari/537.36 OPR/122.0.0.0 (Edition ASUS)
Challenge Information:
Design a Feature Selection Page - Design a Feature Selection Page