Build an Availability Table - Build an Availability Table

Tell us what’s happening:

I´m missing step: 32. You should have a span element with the text Availability inside your #legend.

Is it not what I already have, the syntax should be right but I can´t seem to pass that step.

Thanks for the help :slight_smile:

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Team Availability Schedule</title>
    <meta name="description"
        content="Weekly team availability schedule showing meeting times and team member availability">
    <link rel="stylesheet" href="styles.css">
</head>

<body>
    <main>
        <h1>Team Availability Schedule</h1>
        <p class="subtitle">Find the best time for team meetings</p>

        <table>
            <tr>
            <th></th>
            <th>Monday</th>
            <th>Tuesday</th>
            <th>Wednesday</th>
            <th>Thursday</th>
            <th>Friday</th>
        </tr>
        <tr class="sharp">
            <th class="time">9:00 AM</th>
            <td class="available-2"></td>
            <td class="available-3"></td>
            <td class="available-1"></td>
            <td class="available-4"></td>
            <td class="available-5"></td>
        </tr>
        <tr class="half">
            <th class="time">10:00 AM</th>
            <td class="available-1"></td>
            <td class="available-0"></td>
            <td class="available-5"></td>
            <td class="available-3"></td>
            <td class="available-2"></td>
        </tr>
        <tr class="sharp">
            <th class="time">11:00 AM</th>
            <td class="available-4"></td>
            <td class="available-2"></td>
            <td class="available-3"></td>
            <td class="available-1"></td>
            <td class="available-0"></td>
        </tr>
        <tr class="half">
            <th class="time">12:00 PM</th>
            <td class="available-5"></td>
            <td class="available-4"></td>
            <td class="available-2"></td>
            <td class="available-0"></td>
            <td class="available-3"></td>
        </tr>
        <tr class="sharp">
            <th class="time">1:00 PM</th>
            <td class="available-3"></td>
            <td class="available-1"></td>
            <td class="available-4"></td>
            <td class="available-5"></td>
            <td class="available-2"></td>
        </tr>
        </table>
        <div id="legend">
            <span>Availability</span>
            <div id="legend-gradient"></div>
        </div>
        </div>
    </main>
</body>

</html>
/* file: styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Color variables for availability levels (0 = lowest, 5 = highest) */
    --color0: #2d1b69;
    --color1: #5b4a9d;
    --color2: #8b7ac7;
    --color3: #b8a7e8;
    --color4: #e8b4fa;
    --color5: #ffd6ff;

    /* Border variables */
    --solid-border: 2px solid rgba(255, 255, 255, 0.2);
    --dashed-border: 2px dashed rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

main {
    width: 100%;
    max-width: 800px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    margin-bottom: 2rem;
}

th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.2rem 1rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: #ffd6ff;
}

th.time {
    text-align: right;
    color: #b8a7e8;
    font-weight: 500;
    padding-right: 1.5rem;
}

td {
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

td:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    z-index: 10;
}

/* Availability level background colors */
.available-0 {
    background-color: var(--color0);
}

.available-1 {
    background-color: var(--color1);
}

.available-2 {
    background-color: var(--color2);
}

.available-3 {
    background-color: var(--color3);
}

.available-4 {
    background-color: var(--color4);
}

.available-5 {
    background-color: var(--color5);
}

/* Border styles for sharp and half rows */
.sharp td {
    border-bottom: var(--solid-border);
}

.half td {
    border-bottom: var(--dashed-border);
}

/* Legend styling */
#legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

#legend span {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
}

#legend-gradient {
    flex: 1;
    height: 40px;
    border-radius: 20px;
    background-image: linear-gradient(90deg, var(--color0) 16%, var(--color1) 16% 33%, var(--color2) 33% 49%, var(--color3) 49% 66%, var(--color4) 66% 83%, var(--color5) 83%);
}

/* Responsive design */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    th,
    td {
        padding: 0.8rem 0.5rem;
        font-size: 0.85rem;
    }

    #legend {
        flex-direction: column;
        gap: 0.8rem;
    }

    #legend-gradient {
        width: 100%;
    }
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36

Challenge Information:

Build an Availability Table - Build an Availability Table

the test is case sensitive

Hi buddy, See this is the instructions point put to instruct.

You should have a span element with the text Availability inside your #legend

So after running your code is your text still Availability or something else ?

Can you please check and then clarify ?