Build a Stylized To-Do List - But my CSS is not working

Tell us what’s happening:

I have been trying to add the style in this lesson, but it hasn’t been working. Please look over my code, and let me know, what I am missing, I’ve been on this for two weeks

Your code so far

<!-- file: index.html -->
<!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">

        <li>
            <input type="checkbox" id="task1">
            <label for="task1">Element 1</label>

            <ul class="sub-item">
                <li>
                    <a href="https://www.google.com" class="sub-item-link" target="_blank">Store Line</a>
                </li>
            </ul>
        </li>

        <li>
            <input type="checkbox" id="task2">
            <label for="task2">Element 2</label>

            <ul class="sub-item">
                <li>
                    <a href="https://www.google.com" class="sub-item-link" target="_blank">Request Access</a>
                </li>
            </ul>
        </li>

        <li>
            <input type="checkbox" id="task3">
            <label for="task3">Element 3</label>

            <ul class="sub-item">
                <li>
                    <a href="https://www.google.com" class="sub-item-link" target="_blank">View Phone Warranty</a>
                </li>
            </ul>
        </li>

        <li>
            <input type="checkbox" id="task4">
            <label for="task4">Element 4</label>

            <ul class="sub-item">
                <li>
                    <a href="https://www.google.com" class="sub-item-link" target="_blank">View Model Number</a>
                </li>
            </ul>
        </li>

    </ul>
</body>

</html>

/* file: styles.css */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
}

.todo-list {
    list-style: none;
    padding: 0;
    width: 450px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
}

.todo-list > li {
    background-color: #e5f0e3;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
}

label {
    font-size: 18px;
    margin-left: 8px;
    font-weight: bold;
}

.sub-item {
    list-style: square;
    padding-left: 20px;
    margin-top: 10px;
}

a {
    text-decoration: none;
    color: #0047ff;
    font-size: 16px;
}

a:visited {
    color: #5a008d;
}

a:hover {
    color: #ff8800;
}

a:active {
    color: red;
}

a:focus {
    outline: 2px solid #00cc66;
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15

Challenge Information:

Build a Stylized To-Do List - Build a Stylized To-Do list

double check the filename

1 Like

I am screaming, you are amazing