Tell us what’s happening:
My 13th test not passing, It says- Read more element should have a hover effect, It is working but idk why test not passing.
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">
<title>Blog Post Card</title>
<link href="styles.css">
</head>
<body>
<div class="blog-post-card">
<img src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="lappy" class="post-img">
<div class="post-content">
<h2 class="post-title">WEB DEV</h2>
<p class="post-excerpt">Info about web dev</p>
<a class="read-more">Read More</a>
</div>
</div>
</body>
</html>
/* file: styles.css */
.blog-post-card {
background-color: white;
border-radius: 10px;
width: 300px;
text-align: center;
}
.post-img {
width: 100%;
border-bottom: 5px solid grey;
}
.post-content {
padding: 20px;
}
.post-title, .post-excerpt {
color: blue;
margin: 5px;
}
.read-more {
color: red;
background-color: black;
margin: 2px;
padding: 2px;
border-radius: 5px;
display: inline-block;
}
.read-more:hover {
color: darkblue;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card