Tell us what’s happening:
Step 19 won’t complete. It asks for three empty span elements inside the “rate” element. What am I missing?
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Book Inventory</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h1>Book Inventory</h1>
<table class="books">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Category</th>
<th>Status</th>
<th>Rate</th>
</tr>
</thead>
<tbody>
<tr class="read">
<td>Tender is the night</td>
<td>F. Scott Fitzgerald</td>
<td>Romance</td>
<td><span class="status">Read</span></td>
<td><span class="rate two"><span></span><span></span><span></span></td>
</tr>
<tr class="read">
<td>Neuromancer</td>
<td>William Gibson</td>
<td>Sci-fi</td>
<td><span class="status">Read</span></td>
<td><span class="rate three"><span></span><span></span><span></span></td>
</tr>
<tr class="read">
<td>Blood Meridian</td>
<td>Cormac McCarthy</td>
<td>Drama</td>
<td><span class="status">Read</span></td>
<td><span class="rate one"><span></span><span></span><span></span>
</td>
</tr>
<tr class="to-read">
<td>The Lord of the Rings</td>
<td>J.R.R Tolkien</td>
<td>Fantasy</td>
<td><span class="status">To Read</span></td>
<td><span class="rate">Tbd</span></td>
<tr class="in-progress">
<td>Rest and be thankful</td>
<td>elen Macinnes</td>
<td>Romance</td>
<td><span class="status">In Progress</span></td>
<td><span class="rate"><span></span><span></span><span></span>
</td>
</tr>
</tbody>
</table>
</body>
</html>
/* file: styles.css */
tr[class="read"] {
background-image: linear-gradient(#90EE90, #375f1b);
}
tr[class="to-read"] {
background-image: linear-gradient(lightblue, lightblue);
}
tr[class="in-progress"] {
background-image: linear-gradient(rgb(231, 60, 231), rgba(231, 231, 50, 0.786));
}
span {
display: inline-block;
}
tr[class="to-read"] span[class="status"] {
border: 2px solid green;
border-radius: 5px;
background-image: linear-gradient(green, lightgreen);
}
tr[class="read"] span[class="status"] {
border: 2px solid green;
border-radius: 5px;
background-image: linear-gradient(yellow, lightgreen);
}
tr[class="in-progress"] span[class="status"] {
border: 2px solid white;
border-radius: 5px;
background-image: linear-gradient(yellow, pink);
}
span[class="status"], span[class^="rate"]{
height: 40px;
width: 60px;
padding: 20px;
}
span[class^="rate"] > span {
border: 2px solid white;
border-radius: 2px;
margin: 2px;
height: 7px;
width: 8px;
background-color: gray;
}
span[class~="one"] *:first-child {
background-image: linear-gradient(red, orange);
}
span[class~="two"] span:nth-of-type(-n+2) {
background-image: linear-gradient(green, gold);
}
span[class~="three"] span {
background-image: linear-gradient(yellow, gold);
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/148.0.0.0 Safari/537.36 OPR/132.0.0.0 (Edition std-1)
Challenge Information:
Build a Book Inventory App - Build a Book Inventory App