Design a Blog Post Card - Design a Blog Post Card

Tell us what’s happening:

Hello. My project passes all the tests, except the one telling me to add a hover effect to .read-more.

This is even though the element clearly has one, and I’m targetting .read-more:hover in my CSS

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./styles.css">
    <title>Blog Post Card</title>
</head>
<body>
    <div class="blog-post-card">
        <img class="post-img" src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e6/Red_Panda_%2824986761703%29.jpg/1200px-Red_Panda_%2824986761703%29.jpg" alt="A picture of a red panda; a somewhat racoon-like reddish animal"/>
        <div class="post-content">
            <h2 class="post-title">The original Pandas</h2>
            <p class="post-excerpt">Red pandas (Ailurus fulgens) were actually the first animals to be called "panda"! Learn more about their fascinating lives, and what we can do to protect them.</p>
            <a class="read-more" href="https://www.worldwildlife.org/species/red-panda">Read More</a>
        </div>
    </div>
</body>
</html>
/* file: styles.css */
* {
  font-family: sans-serif;
}

.blog-post-card {
  border-radius: 10%;
  background-color: white;
  width: 70%;
  text-align: center;
  border: 1px solid gray;
  margin-left: auto;
  margin-right: auto;
}

.post-img {
  width: 100%;
  border-bottom: 4px solid rgb(0,100,255);
  border-radius: 11% 11% 0% 0%
}

.post-content {
  padding: 10px;
}

.read-more {
  color: rgb(50,50,255);
  padding: 10px;
  background-color: white;
  display: inline-block;
  margin: 5px;
  border-radius: 5px;
}

.read-more:hover {
  color: rgb(100,100,255);
}

.post-title {
  margin: 20px;
  color: rgb(30,30,40)
}

.post-excerpt {
  margin: 5px;
  color: rgb(50,50,70)
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Challenge Information:

Design a Blog Post Card - Design a Blog Post Card

1 Like

Check the user story again, it mentions something specific about the hover effect

1 Like