Tell us what’s happening:
I have tried everything I can but cant seem to pass STEP 28, STEP 30 and STEP 35. The code is correct and im pretty sure there is no syntax issue. I am frustrated now. These are the errors
Failed:28. You should use --solid-border to set the bottom-border of td elements that are children of .sharp elements.
Failed:30. You should use --dashed-border to set the bottom-border of td elements of .half elements.
Failed:35. 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">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<section class="table">
<table>
<thead>
<tr>
<th></th>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
<th>Thursday</th>
<th>Friday</th>
</tr>
</thead>
<tbody>
<tr class="sharp">
<th class="time">9:00 AM</th>
<td class="available-1"></td>
<td class="available-2"></td>
<td class="available-5"></td>
<td class="available-3"></td>
<td class="available-0"></td>
</tr>
<tr class="half">
<th class="time">10:00 AM</th>
<td class="available-0"></td>
<td class="available-3"></td>
<td class="available-5"></td>
<td class="available-1"></td>
<td class="available-4"></td>
</tr>
<tr class="sharp">
<th class="time">11:00 AM</th>
<td class="available-1"></td>
<td class="available-3"></td>
<td class="available-2"></td>
<td class="available-5"></td>
<td class="available-0"></td>
</tr>
<tr class="half">
<th class="time">12:00 AM</th>
<td class="available-3"></td>
<td class="available-4"></td>
<td class="available-0"></td>
<td class="available-2"></td>
<td class="available-0"></td>
</tr>
</tbody>
</table>
<div id="legend">
<span>Availability</span>
<div id="legend-gradient"></div>
</div>
</section>
</body>
</html>
/* file: styles.css */
:root {
--color5: #1B7901;
--color4: #24A401;
--color3: #47CC03;
--color2: #53F800;
--color1: #D1FBA7;
--color0: #E5E7E3;
--solid-border: #01F2FF;
--dashed-border: #FF0101;
}
.table {
height: 100vh;
width: 100vw;
}
table {
padding-top: 300px;
margin: 0 auto;
}
.available-3 {
background-color: var(--color3);
}
.available-5 {
background-color: var(--color5);
}
.available-2 {
background-color: var(--color2);
}
.available-4 {
background-color: var(--color4);
}
.available-1 {
background-color: var(--color1);
}
.available-0 {
background-color: var(--color0);
}
.sharp td {
border-bottom: 2px solid var(--solid-border);
}
.half td {
border-bottom: 2px solid var(--dashed-border);
}
#legend-gradient {
background-image: linear-gradient(
to right, var(--color5) 10% 30%, var(--color0) 40%);
width: 100px;
height: 20px;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36 Edg/140.0.0.0
Challenge Information:
Build an Availability Table - Build an Availability Table