Tell us what’s happening:
Good day,
I am stuck with step35 like so many others. i have tried making my persentages rounded, like 10% 20%, put it back. adding and removing 0% and 100%. i also tride making to right, to left, 90deg. but somewhere i have a mistake a cannot see.
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>
<table>
<thead>
<tr>
<th>Time/Day</th>
<th>Monday</th>
<th>Theusday</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-2">2 Available</td>
<td class="available-5">5 Available</td>
<td class="available-1">1 Available</td>
<td class="available-3">3 Available</td>
<td class="available-5">5 Available</td>
</tr>
<tr class="half">
<th class="time">10:00 AM</th>
<td class="available-1">1 Available</td>
<td class="available-5">5 Available</td>
<td class="available-1">1 Available</td>
<td class="available-2">2 Available</td>
<td class="available-3">3 Available</td>
</tr>
<tr class="sharp">
<th class="time">11:00 AM</th>
<td class="available-4">4 Available</td>
<td class="available-1">1 Available</td>
<td class="available-5">5 Available</td>
<td class="available-2">2 Available</td>
<td class="available-3">3 Available</td>
</tr>
<tr class="half">
<th class="time">12:00 PM</th>
<td class="available-0">0 Available</td>
<td class="available-1">1 Available</td>
<td class="available-3">3 Available</td>
<td class="available-2">2 Available</td>
<td class="available-4">4 Available</td>
</tr>
<tr class="sharp">
<th class="time">1:00 PM</th>
<td class="available-1">1 Available</td>
<td class="available-5">5 Available</td>
<td class="available-2">2 Available</td>
<td class="available-1">1 Available</td>
<td class="available-0">0 Available</td>
</tr>
</tbody>
<div id="legend">
<span>Availability</span>
<div id="legend-gradient"></div>
</div>
<div class="legend-labels">
<span>0</span>
<span>1</span>
<span>2</span>
<span>3</span>
<span>4</span>
<span>5</span>
</div>
</body>
</html>
/* file: styles.css */
:root {
--color0: #f8f9fa;
--color1: #ffe3e3;
--color2: #ffc9c9;
--color3: #ffa8a8;
--color4: #ff8787;
--color5: #ff6b6b;
--solid-border: 2px solid #dee2e6;
--dashed-border: 2px dashed #dee2e6;
--primary-color: #4c6ef5;
--text-color: #343a40;
--header-tag: #e9ecef;
}
.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-gradient {
background-image: linear-gradient(90deg, var(--color0)16%, var(--color1)16% 33%, var(--color2)33% 50%, var(--color3)50% 66%, var(--color4)66% 83%, var(--color5)83% 100%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
table {
width: 100%;
border-collapse: collapse;
}
th {
background-color: var(--header-tag);
text-align: center;
border: var(--solid-border);
}
]
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
https://www.freecodecamp.org/learn/full-stack-developer/lab-availability-table/build-an-availability-table
