Blog Post Card hover test failing

hey all, I havent been able to get my code to pass this test despite the hover working. I tried to 100% width trick that others were doing but no luck. Any ideas?

<!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 src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="Just some nerd's pc" class="post-img">
        <div class="post-content">
            <h2 class="post-title">
                tired of the tiny bite barks?
            </h2>
            <p class="post-excerpt">i teach you the way to make a chihuahua not hate you
            </p>
            <a class="read-more">Read More  
            </a>

        </div>





    </div>
</body>
</html>
body{
  background-color:teal
}

.blog-post-card{
  background-color:white;
  border-radius:30px;
  width: 100%;
  height: 100%;
  text-align:center;
  border-style:none;
}

.post-img{
   width: 100%;
  height: 100%;
  border-bottom:50px;
}

.post-content{
  padding:20px;
}

.post-title{
  color:blue;
  margin: 10px;
}
.post-exerpt{
  color:pink;
  margin: 10px;
}

.read-more {
  color:blue;
  background-color:pink;
  margin: 10px;
  padding: 10px;
  border-radius: 30px;
  display:inline-block;

}
.read-more:hover{
color:green;
border-style:none;
}

Please post a link to the challenge. Thank you.

1 Like

whoops, sorry. didn’t know all the proper etiquette here https://www.freecodecamp.org/learn/responsive-web-design-v9/lab-blog-post-card/lab-blog-post-card

Your selector is fine, but it doesn’t look like you’re styling the background color as asked.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.