Tell us what’s happening:
How can i add hover effect to read-more element(step 13)?
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" rel="stylesheet">
</head>
<body>
<div class="blog-post-card">
<img class="post-img" src="https://cdn.freecodecamp.org/curriculum/labs/cover-photo.jpg" alt="dd">
<div class="post-content">
<h2 class="post-title">hhhhh</h2>
<p class="post-excerpt"></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: 200px;
text-align: center;
}
.post-content {
padding: 25%
}
.read-more:hover pseudo-class {
color: brown;
}
a:hover {
background-color: black;
}
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
Challenge Information:
Design a Blog Post Card - Design a Blog Post Card