Tell us what’s happening:
Please I need help with points 48 to 51. I’ve tried several ways and they still haven’t been validated.
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>
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Category</th>
<th>Status</th>
<th>Rate</th>
</tr>
</thead>
<tbody>
<tr class="read">
<td>Don Quixote</td>
<td>Miguel de Cervantes</td>
<td>Classic</td>
<td><span class="status">Read</span>1605</td>
<td><span class="rate one"><span></span><span></span><span></span></span></td>
</tr>
<tr class="in-progress">
<td>One hundred years of solitude</td>
<td>Gabriel García Márquez</td>
<td>Magical Realism</td>
<td><span class="status">In Progress</span>1967</td>
<td><span class="rate one "><span></span><span></span><span></span></span></td>
</tr>
<tr class="to-read">
<td>1984</td>
<td>George Orwell</td>
<td>Dystopia</td>
<td><span class="status">To Read</span>1949</td>
<td><span class="rate two"><span></span><span></span><span></span></span></td>
</tr>
<tr class="read">
<td>The Little Prince</td>
<td>Antoine de Saint-Exupéry</td>
<td>Fable</td>
<td><span class="status">Read</span>1943</td>
<td><span class="rate three"><span></span><span></span><span></span></span></td>
</tr>
</tbody>
</table>
</body>
</html>
/* file: styles.css */
tr[class="read"] {
background-image: linear-gradient(#d4edda, #c3e6cb);
}
tr[class="to-read"] {
background-image: linear-gradient(#d1ecf1, #bee5eb);
}
tr[class="in-progress"] {
background-image: linear-gradient(#fff3cd, #ffeeba);
}
span{
display: inline-block
}
tr[class="to-read"] span[class="status"] {
border: 2px solid #05294f;
background-image: linear-gradient(#d1ecf1, #bee5eb);
border-radius: 10px;
}
tr[class="read"] span[class="status"] {
border: 1px solid #0ce43e;
background-image: linear-gradient(#d4edda, #c3e6cb);
border-radius: 10px;
}
tr[class="in-progress"] span[class="status"] {
border: 1px solid #b88d0c;
background-image: linear-gradient(#fff3cd, #ffeeba);
border-radius: 10px;
}
span[class="status"], span[class^="rate"] {
height: 20px;
width: 30px;
padding: 5px;
}
span[class^="rate"] > span {
border: 1px solid gray;
border-radius: 10px;
margin: 2px;
height: 10px;
width: 10px;
background-color: whitesmoke;
}
[class~="one"] :nth-child(1){
background-image: linear-gradient(to top, rgb(255, 0, 0), rgb(255, 150, 0));
}
[class~="two"] :nth-child(1),span[class~="two"] :nth-child(2){
background-image: linear-gradient(to top, rgb(255, 153, 28), rgb(255, 227, 90));
}
span[class~="three"] > span {
background-image: linear-gradient(to top, rgb(0, 255, 0), rgb(255, 225, 255));
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36
Challenge Information:
Build a Book Inventory App - Build a Book Inventory App