Tell us what’s happening:
Not meeting the 34th and 35th Condition of “Build an Availability Table” test even after setting 2 stop point’s on each colour.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="styles.css"/>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Availability Table</title>
</head>
<body>
<div id="legend">
<div id="legend-gradient"> <span>Availability</span></div>
</div>
<table class="table">
<thead>
<tr>
<th></th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednessday</th>
<th>Thrusday</th>
</tr>
<thead>
<tbody>
<tr class="sharp">
<th class="time">7am</th>
<td class="available-0">0</td>
<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">11am</th>
<td class="available-2">2</td>
<td class="available-4">4</td>
<td class="available-0">0</td>
<td class="available-1">1</td>
</tr>
<tr class="sharp">
<th class="time">4pm</th>
<td class="available-3">3</td>
<td class="available-0">0</td>
<td class="available-4">4</td>
<td class="available-5">5</td>
</tr>
<tr class="half">
<th class="time">7pm</th>
<td class="available-2">2</td>
<td class="available-1">1</td>
<td class="available-3">3</td>
<td class="available-0">0</td>
</tr>
<tr class="sharp">
<th class="time">10pm</th>
<td class="available-4">4</td>
<td class="available-0">0</td>
<td class="available-2">2</td>
<td class="available-1">1</td>
</tr>
<tbody>
</table>
</body>
</html>
/* file: styles.css */
.table{margin:auto;}
#legend-gradient{margin:auto;}
:root{
--color0:magenta;
--color1:yellow;
--color2:skyblue;
--color3:khaki;
--color4:red;
--color5:green;
--solid-border:5px solid black;
--dashed-border:3px 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);}
#legend-gradient{
background-image:linear-gradient(
90deg,
var(--color0) 0% 16%,
var(--color1) 16% 33%,
var(--color2) 33% 50%,
var(--color3) 50% 67%,
var(--color4) 67% 84%,
var(--color5) 84% 100%
);}
.sharp td{border-bottom:var(--solid-border);}
.half td{border-bottom:var(--dashed-border);}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0
Challenge Information:
Build an Availability Table - Build an Availability Table
