Build a Book Inventory App - Build a Book Inventory App

Tell us what’s happening:

I’m struggling with steps 15–17. I managed to pass step 15 by copying the selector and changing it as instructed, but it still doesn’t work for the next steps. I checked the forum (which helped me pass step 15), but I’m not sure what else to try. Thanks in advance for your help!

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>The Hobbit</td>
        <td>J.R.R. Tolkien</td>
        <td>Fantasy</td>
        <td><span class="status">Read</span></td>
        <td><span class="rate two"><span></span><span></span><span></span></span></td>
      </tr>
      <tr class="to-read">
        <td>1984</td>
        <td>George Orwell</td>
        <td>Dystopian</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>Dune</td>
        <td>Frank Herbert</td>
        <td>Science Fiction</td>
        <td><span class="status">In Progress</span></td>
        <td><span class="rate"><span></span><span></span><span></span></span></td>
      </tr>
      <tr class="read">
        <td>Pride and Prejudice</td>
        <td>Jane Austen</td>
        <td>Classic</td>
        <td><span class="status">Read</span></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(darkgreen, lightgreen);
}

tr[class="in-progress"] {
  background-image: linear-gradient(orange, darkorange);
}

tr[class="to-read"] {
  background-image: linear-gradient(red, darkred);
}

span {
  display: inline-block;
}

tr[class="in-progress"] span[class="status"] {
  border: 2px solid black;
  border-radius: 100px;
  padding: 2px;
  background-image: url("paper.gif");
}

tr[class="to-read"] span[class="status"] {
  border: 2px solid black;
  border-radius: 100px;
  padding: 2px;
  background-image: url("paper.gif");

}

tr[class="read"] span[class="status"] {
  border: 2px solid black;
  border-radius: 100px;
  padding: 2px;
  background-image: url("paper.gif");
}

span[class="status"], span[class^="rate"] {
  height: 5px;
  width: 5px;
  padding: 2px
}

span[class^=rate] > span {
  border: 2px solid;
  border-radius: 111px;
  margin: 2px;
  height: 5px;
  width: 5px;
  background-color: black;
}

span[class~="one"] span:first-child {
  background-image: linear-gradient(green, red)
};

span[class~="two"] span:nth-child(1), span[class~="two"] span:nth-child(2) {
  background-image: linear-gradient(green, red)
};


span[class~="three"] span {
  background-image: linear-gradient(green, red)
};

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36

Challenge Information:

Build a Book Inventory App - Build a Book Inventory App

double check your syntax, are you sure this is needed here?

thanks I mixed it up with JS. It works now. I live your new curriculum. I already did the old one with HTML and CSS and still learn new things in the new one.