Build an Availability Table - Build an Availability Table

Tell us what’s happening:

I am unable to complete the last test despite following the hints on the forum

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>Availability Table</title>
    <link rel="stylesheet" href="styles.css">
</head>

<body>
<table>
    <thead>
        <tr class="sharp">
            <th>Time</th>
            <th>Monday</th>
            <th>Wednesday</th>
            <th>Friday</th>
        </tr>
    </thead>
    <tbody>
        <tr class="sharp">
            <th class="time">08:00 AM</th>
            <td class="available-3">3</td>
            <td class="available-5">5</td>
            <td class="available-1">1</td>
        </tr>
        <tr class="half">
            <th class="time">09:00 AM</th>
            <td class="available-0">0</td>
            <td class="available-2">2</td>
            <td class="available-4">4</td>
        </tr>
        <tr class="sharp">
            <th class="time">10:00 PM</th>
            <td class="available-1">1</td>
            <td class="available-3">3</td>
            <td class="available-5">5</td>
        </tr>
        <tr class="half">
            <th class="time">11:00 PM</th>
            <td class="available-2">2</td>
            <td class="available-4">4</td>
            <td class="available-0">0</td>
        </tr>
        <tr class="sharp">
            <th class="time">10:00 AM</th>
            <td class="available-1">1</td>
            <td class="available-3">3</td>
            <td class="available-5">5</td>
        </tr>
    </tbody>
</table>
<div id="legend">
    <span>Availability</span>
    <div id="legend-gradient">
    </div>
</div>
</body>

</html>
/* file: styles.css */
:root{
  --color0: orange;
  --color1: red;
  --color2: blue;
  --color3: yellow;
  --color4: green;
  --color5: cyan;
  --solid-border: 2px solid black;
  --dashed-border: 2px dashed black;
}

.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);
}

.sharp td{
  border-bottom: var(--solid-border);
}

.half td{
  border-bottom: var(--dashed-border);
}
 #legend {
      margin-top: 20px;
      width: 300px;
    }

    #legend span {
      display: inline-block;
      margin-bottom: 8px;
      font-weight: bold;
    }

#legend-gradient{
  width: 75%;
  height: 50px;
  border: var(--solid-border);
  background-image: linear-gradient(
  to left,
  var(--color0)0% 20%,
  var(--color1)20% 40%,
  var(--color2)40% 60%,
  var(--color3)60% 80%,
  var(--color4)80% 100%,
  var(--color5)100%
);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Challenge Information:

Build an Availability Table - Build an Availability Table

Github Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-availability-table/66b36358ed4f261d64840c24.md at main · freeCodeCamp/freeCodeCamp · GitHub

make sure to write all spaces in the right place between the arguments. Also you should also use --color5, currently it’s from 100% to 100%, that’s not much space for it, is it?

In addition to what ILM said, you are missing a curly brace to close your #legend-gradient selector.