Build an Availability Table - Build an Availability Table

Tell us what’s happening:

The number 35, refuses to go through, despite following the instructions, which says " You should use two color-stops (expressed in percentage) to make the transition from one color to the following color a hard line for your #legend-gradient. Remember to use your --color# variables."
Another issue is that my 5th data cell is collapsing and I can’t find ou why

Your code so far

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="styles.css"/>
    <title>Availability Table</title>
</head>

<body>

<table>
        <tr>
            <th class="days">Montag</th>
             <th class="days">Dienstag</th>
              <th class="days">Mittwoch</th>
               <th class="days">Donnerstag</th>
                <th class="days">Freitag</th>
        </tr>

        <tr class="sharp">
            <th class="time">8:00</th>
            <td class="available-1"></td>
            <td class="available-2"></td>
            <td class="available-3"></td>
            <td class="available-4"></td>
            <td class="available-5"></td>
            </tr>

             <tr class="sharp">
            <th class="time">10:00</th>
            <td class="available-1"></td>
            <td class="available-2"></td>
            <td class="available-3"></td>
            <td class="available-4"></td>
            <td class="available-5"></td>
            </tr>
            
             <tr class="sharp">
            <th class="time">12:00</th>
            <td class="available-1"></td>
            <td class="available-0"></td>
            <td class="available-3"></td>
            <td class="available-4"></td>
            <td class="available-5"></td>
            </tr>

             <tr class="half">
            <th class="time">15:00</th>
            <td class="available-1"></td>
            <td class="available-0"></td>
            <td class="available-3"></td>
            <td class="available-4"></td>
            <td class="available-5"></td>
            </tr>
            
             <tr class="half">
            <th class="time">19:00</th>
            <td class="available-5"></td>
            <td class="available-0"></td>
            <td class="available-3"></td>
            <td class="available-2"></td>
            <td class="available-5"></td>
            </tr>

             <tr class="half">
            <th class="time">22:00</th>
           <td class="available-0"></td>
            <td class="available-3"></td>
            <td class="available-2"></td>
            <td class="available-1"></td>
            <td class="available-5"></td>
            </tr>
</table>

  <div id="legend">
                <span>Availability</span>
                <div id="legend-gradient">
                    </div>
                </div>
                
</body>

</html>

Your browser information:

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

Challenge Information:

Build an Availability Table - Build an Availability Table

Tell us what’s happening:

The number 35, refuses to go through, despite following the instructions, which says " You should use two color-stops (expressed in percentage) to make the transition from one color to the following color a hard line for your #legend-gradient. Remember to use your --color# variables."

Your code so far

/* file: styles.css */

:root{
  --color0: red;
  --color1: yellow;
  --color2: orange; 
  --color3: skyblue;
  --color4: purple;
  --color5: green;
  --solid-border:1px solid #000;
  --dashed-border: 1px dashed #222;
}

.th{
 border: 1px solid var(--solid-border);
  width: 100px;
  height: 20px;
  padding: 20px;
}
.sharp{
  border: 1px solid var(--solid-border);
  width: 100px;
  height: 20px;
  padding: 20px;

}
.half{
   border: 1px solid var(--dashed-border);
  width: 100px;
  height: 20px;
    padding: 20px;
}

.days{
  font-size: 1.2rem;
  margin: 25px;
  padding:0 10px;
  position: relative;
  left: 80px;
 
}
.time{
  position: relative;
  bottom: 20px;
  left: 10px;
   font-size: 1.2rem;
   padding:0 -10px;
}
.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);
  width: 100px !important;
}
.sharp td{
  border-bottom:  var(--solid-border);
 
}
.half td{
  border-bottom: var(--dashed-border);
}
#legend{
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
 margin: 15px;
}

#legend-gradient {
  border: 1px solid black;
  height: 20px;
  width: 50%;
  background-image: linear-gradient(to right,
    var(--color0) 0%,
    var(--color1) 10%,
    var(--color2) 20% ,
    var(--color3) 30% ,
    var(--color4) 50%,
    var(--color5) 80%
  );
  margin: 10px auto;
  position: relative; 
  left: 60px;
}

Your browser information:

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

Challenge Information:

Build an Availability Table - Build an Availability Table

you need to share your code too

I have merged the two topics, please do not create multiple topics for the same challenge

anyway, you are not using the requested syntax

see this example Gradient with multi-position color-stops

Two stops, I understand now. Thanks

But my 5th table keeps collapsing and I can’t find out why

what do you mean with collapsing?

Don’t use decimal percentage.