Hey all, I think lesson (Build a Stylized To-Do list) may be broken. It will not apply CSS, even when I used AI to create code to make sure I was correct, it still wil not accept it. I cannot get it to approve Point 14-18 for the CSS portion of lessons. 1-13 get the correct checkmark.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Styled To-Do List</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<ul class="todo-list">
<!--First item in list -->
<li>
<input type="checkbox" id="todo1">
<label for="todo1">Buy Gaming Computer</label>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="google.com" target="_blank">Link to item</a>
</li>
</ul>
</li>
<!-- Second item in list-->
<li>
<input type="checkbox" id="todo2">
<label for="todo2">Buy gaming chair</label>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="google.com" target="_blank">Link to item</a>
</li>
</ul>
</li>
<!-- Third item in list -->
<li>
<input type="checkbox" id="todo3">
<label for="todo3">Buy Gaming Mouse</label>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="google.com" target="_blank">Link to item</a>
</li>
</ul>
</li>
<!-- Fourth item in list -->
<li>
<input type="checkbox" id="todo4">
<label for="todo4">Buy Gaming Headset</label>
<ul class="sub-item">
<li>
<a class="sub-item-link" href="google.com" target="_blank">Link to item</a>
</li>
</ul>
</li>
</ul>
<!-- item outside of lsit -->
</body>
</html>
CSS:
/* General link styles (no underline, base color) */
a {
text-decoration: none;
color: #2196F3; /* Example: a nice blue */
}
/* Visited link color */
a:visited {
color: #9C27B0; /* Example: Purple */
}
/* Hovered link color */
a:hover {
color: #FF9800; /* Example: Orange */
}
/* Focused link style (outline) */
a:focus {
outline: 2px solid #4CAF50; /* Example: Green outline */
outline-offset: 2px;
}
/* Active (clicked) link color */
a:active {
color: #F44336; /* Example: Red */
}
.sub-item-link {
text-decoration: none;
}
and then I tried just something simple to get 14 to get the checkmark but still did not work
.sub-item-link {
text-decoration: none;
}
a{
text-decoration: none;
}