Tell us what’s happening:
my step 11 and 14 won’t pass despite trying everything i can think of
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>Arabian Nights</td>
<td>Hussein Omar</td>
<td>Fantasy</td>
<td><span class="status">Read</span></td>
<td>
<span class="rate one">
<span></span>
<span></span>
<span></span>
</span>
</td>
</tr>
<tr class="to-read">
<td>Meghan Stallion</td>
<td>Uncle Ruckus</td>
<td>No Diddy</td>
<td><span class="status">To Read</span></td>
<td>
<span class="rate">
<span></span>
<span></span>
<span></span>
</span>
</td>
</tr>
<tr class="in-progress">
<td>Exhausted</td>
<td>Need Sleep</td>
<td>What now</td>
<td><span class="status">In Progress</span></td>
<td>
<span class="rate">
<span></span>
<span></span>
<span></span>
</span>
</td>
</tr>
</tbody>
</table>
</body>
</html>
/* file: styles.css */
tr[class="read"] {
background-image: linear-gradient(blue, red);
}
tr[class="to-read"] {
background-image: linear-gradient(green, yellow);
}
tr[class="in-progress"] {
background-image: linear-gradient(blue, red);
}
span {
display: inline-block;
}
tr[class="to-read"] span[class="status"] {
border: 2px solid transparent;
background-image: linear-gradient(black, white);
}
tr[class="read"] span[class="status"] {
border: 2px solid transparent;
background-image: linear-gradient(white, black);
}
tr[class="in-progress"] span[class="status"] {
border: 0;
background-image: linear-gradient( white, black);
}
span[class="status"], span[class^="rate"] {
width: 6em;
height: 1em;
padding: 2px;
}
span[class^="rate"] > span {
border:2px solid transparent;
border-radius: 10px;
margin: 0 auto;
height: 1em;
width: 6em;
background-color: lightgray;
}
span[class~="one"] > span:first-child {
background-image: linear-gradient(red, green);
}
span[class~="two"] > :nth-child(1), span[class~="two"] > :nth-child(2) {
background-image: linear-gradient( yellow, blue);
}
span[class~="three"] > span {
background-image: linear-gradient(pink, violet);
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 OPR/122.0.0.0 (Edition ASUS)
Challenge Information:
Build a Book Inventory App - Build a Book Inventory App