Tell us what’s happening:
Is not working for step 13 I tried many options but nothing
Your code so far
<!-- file: index.html -->
<!-- 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 for="1" class="feature-card">
<input type="checkbox" name="#" id="1" />
FEATURE N°1
</label>
<label for="2" class="feature-card">
<input type="checkbox" name="#" id="2" />
FEATURE N°2
</label>
<label for="3" class="feature-card">
<input type="checkbox" name="#" id="3" />
FEATURE N°3
</label>
<label for="4" class="feature-card">
<input type="checkbox" name="#" id="4" />
FEATURE N°4
</label>
</div>
</body>
</html>
/* file: styles.css */
h1 {
text-align: center;
color: red;
text-shadow: 0 0 15px black;
}
.feature-card-container {
margin: auto;
display: grid;
width: 60%;
grid-template-columns: repeat(2, 1fr);
border: 1px solid black;
border-radius: 10px;
box-shadow: 0 0 20px rgb(230, 17, 17);
}
.feature-card {
border: 1px solid red;
border-radius: 10px;
color: red;
margin: 10px;
padding: 10px;
font-weight: bold;
font-size: 1.2em;
text-align: center;
cursor: pointer;
display: block;
}
input[type="checkbox"] {
appearance: none;
width: 20px;
height: 20px;
border: 3px solid red;
border-radius: 5px;
margin-right: 10px;
vertical-align: middle;
background-repeat: no-repeat;
background-position: center center;
background-size: 14px 14px;
}
input[type="checkbox"]:checked {
background-color: black;
border-color: green;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ctext x='10' y='14' text-anchor='middle' font-size='16' fill='red'%3E%E2%9C%93%3C/text%3E%3C/svg%3E");
}
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