Build an Availability Table - Build an Availability Table

Tell us what’s happening:

idon’t know how to pass step 35, help me i spent a lot time . ‘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: 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 border="1">
  <thead>
    <tr class="sharp">
       <th class="time">9:00 AM</th>
      <th class="time">10:00 AM</th>
      <th class="time">11:00 AM</th>
      <th class="time">12:00 PM</th>
    </tr>
  </thead>
  <tbody>
    <tr class="half">
      <td class="available-0">HTML5</td>
      <td class="available-1">Document Structure</td>
      <td class="available-2">Beginner</td>
      <td class="available-0">1:00</td>
    </tr>
    <tr class="sharp">
      <td class="available-3">CSS3</td>
      <td class="available-4">Styling and Layout</td>
      <td class="available-5">Intermediate</td>
      <td class="available-0">2:00</td>
    </tr>
    <tr class="half">
      <td class="available-0">JavaScript</td>
      <td class="available-1">Interactivity</td>
      <td class="available-2">Advanced</td>
      <td class="available-0">3:00</td>
    </tr>
    <tr class="sharp">
      <td class="available-0">React</td>
      <td class="available-1">UI Components</td>
      <td class="available-2">Advanced</td>
      <td class="available-0">4:00</td>
    </tr>
    <tr class="half">
      <td class="available-0">SQL</td>
      <td class="available-1">Database Management</td>
      <td class="available-2">Intermediate</td>
      <td class="available-0">5:00</td>
    </tr>
  </tbody>
</table>
 <div id="legend">
   <span>Availability</span>
    <div id="legend-gradient"> 
 </div>
</div>
</body>

</html>
/* file: styles.css */
:root {
  --color0: #2c3e50;
  --color1: #34495e;
  --color2: #3498db;
  --color3: #2980b9;
  --color4: #ecf0f1;
  --color5: #bdc3c7;
  --solid-border: 1px solid black;
  --dashed-border: 1px dashed black;
}
#legend-gradient{
  width: 100%;
  height:20px;
  background-image: linear-gradient(to right, var(--color0) 0% 16%, var(--color1) 16% 33%, var(--color2)33% 49%, var(--color3)  49%  66%, var(--color4)  66% end 83%, var(--color5) 83% 100%);
}
.sharp td {
 border-bottom: var(--solid-border);
}

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


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



Your browser information:

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

Challenge Information:

Build an Availability Table - Build an Availability Table

double check your spaces, there are not enough in some places and too many in others

2 Likes

thanks a alot it works

may i also have same test case issue please help me out

@guravaraokayakakula what are you looking for? if you want to learn, please visit the curriculum at https://www.freecodecamp.org/

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.